Browse Source

[Fix] install script: sync `nvm_download` implementation from nvm.sh

nmarghetti 4 years ago committed by Jordan Harband
parent
commit
589c2377fb
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
  1. 8
      install.sh

8
install.sh

@ -80,14 +80,16 @@ nvm_node_version() { @@ -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

Loading…
Cancel
Save