From 589c2377fbe37c23996a82d6d88b37c62f1a022a Mon Sep 17 00:00:00 2001 From: nmarghetti Date: Wed, 13 Jan 2021 02:26:38 +0100 Subject: [PATCH] [Fix] install script: sync `nvm_download` implementation from nvm.sh --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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