We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4180b8 commit 353b879Copy full SHA for 353b879
scripts/bun_install.sh
@@ -142,8 +142,13 @@ if [[ ! -d $bin_dir ]]; then
142
error "Failed to create install directory \"$bin_dir\""
143
fi
144
145
-curl --fail --location --progress-bar --output "$exe.zip" "$bun_uri" ||
+if command -v curl >/dev/null 2>&1; then
146
+ curl --fail --location --progress-bar --output "$exe.zip" "$bun_uri" ||
147
error "Failed to download bun from \"$bun_uri\""
148
+else
149
+ wget --quiet --show-progress --output-document="$exe.zip" "$bun_uri" ||
150
+ error "Failed to download bun from \"$bun_uri\""
151
+fi
152
153
unzip -oqd "$bin_dir" "$exe.zip" ||
154
error 'Failed to extract bun'
0 commit comments