[Fix] nvm_download: ensure all args are quoted

Fixes #3411.
This commit is contained in:
Jordan Harband
2024-08-20 22:33:38 -07:00
parent 863bd63cfa
commit 0ce8f5a52f
3 changed files with 10 additions and 2 deletions

2
test/install_script/nvm_download Normal file → Executable 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 no existing file"
die "nvm_download should fail to download nonexistent file"
fi
cleanup