Compare commits

..

No commits in common. "0ce8f5a52fd5178b4d7e3a0780c46f46e91482fe" and "0d5338166694e558ce315172f4ca93c20c0ded26" have entirely different histories.

18 changed files with 2 additions and 10 deletions

7
nvm.sh
View File

@ -128,12 +128,7 @@ nvm_download() {
if nvm_curl_use_compression; then
CURL_COMPRESSED_FLAG="--compressed"
fi
local NVM_DOWNLOAD_ARGS
NVM_DOWNLOAD_ARGS=''
for arg in "$@"; do
NVM_DOWNLOAD_ARGS="${NVM_DOWNLOAD_ARGS} \"$arg\""
done
eval "curl -q --fail ${CURL_COMPRESSED_FLAG:-} ${CURL_HEADER_FLAG:-} ${NVM_DOWNLOAD_ARGS}"
eval "curl -q --fail ${CURL_COMPRESSED_FLAG:-} ${CURL_HEADER_FLAG:-} $*"
elif nvm_has "wget"; then
# Emulate curl with wget
ARGS=$(nvm_echo "$@" | command sed -e 's/--progress-bar /--progress=bar /' \

View File

View File

3
test/fast/Unit tests/nvm_download Executable file → Normal file
View File

@ -25,7 +25,4 @@ NVM_AUTH_HEADER="Bearer test-token" nvm_download "http://127.0.0.1/bearer" > /de
nvm_download "http://127.0.0.1/bearer" > /dev/null && die 'nvm_download with no auth header should not send the header and should fail'
docker stop httpbin && docker rm httpbin
# ensure quoted extra args remain quoted
nvm_download "https://raw.githubusercontent.com/nvm-sh/nvm/HEAD/install.sh" -o "; die quoted-command-not-quoted" || die 'command failed'
cleanup

0
test/fast/Unit tests/nvm_install_binary_extract Executable file → Normal file
View File

0
test/fast/Unit tests/nvm_install_no_progress_bar Executable file → Normal file
View File

0
test/fast/Unit tests/nvm_is_version_installed Executable file → Normal file
View File

0
test/fast/Unit tests/nvm_write_nvmrc Executable file → Normal file
View File

View File

2
test/install_script/nvm_download Executable file → Normal file
View File

@ -12,7 +12,7 @@ nvm_download "https://raw.githubusercontent.com/nvm-sh/nvm/HEAD/install.sh" >/de
# nvm_download should fail to download wrong_install.sh
if nvm_download "https://raw.githubusercontent.com/nvm-sh/nvm/HEAD/wrong_install.sh" &>/dev/null; then
die "nvm_download should fail to download nonexistent file"
die "nvm_download should fail to download no existing file"
fi
cleanup

0
test/installation_iojs/install from source Executable file → Normal file
View File

View File

View File

View File

View File