[Fix] bypass aliased curl

Closes #2932
This commit is contained in:
ryenus
2023-01-10 15:32:47 +08:00
committed by Jordan Harband
parent 9142a92cdc
commit 0c1243a7ea
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ nvm_node_version() {
nvm_download() {
if nvm_has_executable "curl"; then
curl --fail --compressed -q "$@"
command curl --fail --compressed -q "$@"
elif nvm_has_executable "wget"; then
# Emulate curl with wget
ARGS=$(nvm_echo "$@" | command sed -e 's/--progress-bar /--progress=bar /' \