diff --git a/install.sh b/install.sh index a7c0f3f..16382b3 100755 --- a/install.sh +++ b/install.sh @@ -80,14 +80,16 @@ nvm_node_version() { nvm_download() { if nvm_has "curl"; then - curl --compressed -q "$@" + curl --fail --compressed -q "$@" elif nvm_has "wget"; then # Emulate curl with wget - ARGS=$(echo "$*" | command sed -e 's/--progress-bar /--progress=bar /' \ - -e 's/-L //' \ + ARGS=$(nvm_echo "$@" | command sed -e 's/--progress-bar /--progress=bar /' \ -e 's/--compressed //' \ + -e 's/--fail //' \ + -e 's/-L //' \ -e 's/-I /--server-response /' \ -e 's/-s /-q /' \ + -e 's/-sS /-nv /' \ -e 's/-o /-O /' \ -e 's/-C - /-c /') # shellcheck disable=SC2086