Skip to content

Commit 57f120a

Browse files
authored
Make cloudflared executable on all platforms
1 parent 39d1055 commit 57f120a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

mlc-r2-downloader.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,8 @@ install_cloudflared() {
244244
exit 1
245245
fi
246246

247-
# Make it executable (only on Unix-like systems)
248-
if [[ "$OS" != "cygwin" ]]; then
249-
chmod +x "$BINARY_NAME"
250-
fi
247+
# Make it executable
248+
chmod +x "$BINARY_NAME"
251249

252250
# Create install directory if it doesn't exist (only for Cygwin)
253251
if [[ "$OS" == "cygwin" ]]; then
@@ -843,4 +841,4 @@ $HASH_CHECKER -c "$HASHES_FILE_NAME" || { echo "Error: Hash verification failed"
843841
cd "$old_wd" || { echo "Error: Failed to return to original directory" >&2; exit 1; }
844842

845843
echo "Checksum verification completed successfully!"
846-
echo "All files have been downloaded and verified in: $download_dir"
844+
echo "All files have been downloaded and verified in: $download_dir"

0 commit comments

Comments
 (0)