diff --git a/.travis.yml b/.travis.yml index c5581db..ba1b1bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,3 +20,10 @@ env: - SHELL=ksh TEST_SUITE=fast - SHELL=ksh TEST_SUITE=fast WITHOUT_CURL=1 - SHELL=sh TEST_SUITE=slow + - SHELL=sh TEST_SUITE=slow WITHOUT_CURL=1 + - SHELL=dash TEST_SUITE=slow + - SHELL=dash TEST_SUITE=slow WITHOUT_CURL=1 + - SHELL=bash TEST_SUITE=slow + - SHELL=bash TEST_SUITE=slow WITHOUT_CURL=1 + - SHELL=zsh TEST_SUITE=slow + - SHELL=zsh TEST_SUITE=slow WITHOUT_CURL=1 diff --git a/install.sh b/install.sh index d7c6261..53459f7 100755 --- a/install.sh +++ b/install.sh @@ -18,7 +18,7 @@ nvm_download() { # Emulate curl with wget ARGS=$(echo "$*" | sed -e 's/--progress-bar /--progress=bar /' \ -e 's/-L //' \ - -e 's/-I //' \ + -e 's/-I /--server-response /' \ -e 's/-s /-q /' \ -e 's/-o /-O /' \ -e 's/-C - /-c /') diff --git a/nvm.sh b/nvm.sh index fee0758..aa46581 100644 --- a/nvm.sh +++ b/nvm.sh @@ -19,7 +19,7 @@ nvm_download() { # Emulate curl with wget ARGS=$(echo "$*" | sed -e 's/--progress-bar /--progress=bar /' \ -e 's/-L //' \ - -e 's/-I //' \ + -e 's/-I /--server-response /' \ -e 's/-s /-q /' \ -e 's/-o /-O /' \ -e 's/-C - /-c /') @@ -449,7 +449,7 @@ nvm() { tmpdir="$NVM_DIR/src" local tmptarball tmptarball="$tmpdir/node-$VERSION.tar.gz" - if [ "`nvm_download -s -I "$NVM_NODEJS_ORG_MIRROR/$VERSION/node-$VERSION.tar.gz" -o - | \grep '200 OK'`" != '' ]; then + if [ "`nvm_download -s -I "$NVM_NODEJS_ORG_MIRROR/$VERSION/node-$VERSION.tar.gz" -o - 2>&1 | \grep '200 OK'`" != '' ]; then tarball="$NVM_NODEJS_ORG_MIRROR/$VERSION/node-$VERSION.tar.gz" sum=`nvm_download -s $NVM_NODEJS_ORG_MIRROR/$VERSION/SHASUMS.txt -o - | \grep node-$VERSION.tar.gz | \awk '{print $1}'` elif [ "`nvm_download -s -I "$NVM_NODEJS_ORG_MIRROR/node-$VERSION.tar.gz" -o - | \grep '200 OK'`" != '' ]; then