Skip to content

Commit 8937917

Browse files
committed
[Fix] install: properly check for curl/wget
1 parent 30486b9 commit 8937917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ nvm_do_install() {
360360
# Autodetect install method
361361
if nvm_has git; then
362362
install_nvm_from_git
363-
elif nvm_has nvm_download; then
363+
elif nvm_has curl || nvm_has wget; then
364364
install_nvm_as_script
365365
else
366366
nvm_echo >&2 'You need git, curl, or wget to install nvm'
@@ -373,7 +373,7 @@ nvm_do_install() {
373373
fi
374374
install_nvm_from_git
375375
elif [ "${METHOD}" = 'script' ]; then
376-
if ! nvm_has nvm_download; then
376+
if ! nvm_has curl || nvm_has wget; then
377377
nvm_echo >&2 "You need curl or wget to install nvm"
378378
exit 1
379379
fi

0 commit comments

Comments
 (0)