[Fix] install: fix method=script install condition

Fixes #2665; see 8937917
This commit is contained in:
Jérôme Foray authored and Jordan Harband committed 2021-11-30 16:07:22 +01:00
1 parent 275001b066
commit 4856407d26
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -373,7 +373,7 @@ nvm_do_install() {
fi
install_nvm_from_git
elif [ "${METHOD}" = 'script' ]; then
if ! nvm_has curl || nvm_has wget; then
if ! nvm_has curl && ! nvm_has wget; then
nvm_echo >&2 "You need curl or wget to install nvm"
exit 1
fi