From 89379176ac5f6604ca0bafa7f9d20951da620fdd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 25 Nov 2021 14:26:35 -0800 Subject: [PATCH] [Fix] `install`: properly check for curl/wget --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index d6433ce..a4a12ba 100755 --- a/install.sh +++ b/install.sh @@ -360,7 +360,7 @@ nvm_do_install() { # Autodetect install method if nvm_has git; then install_nvm_from_git - elif nvm_has nvm_download; then + elif nvm_has curl || nvm_has wget; then install_nvm_as_script else nvm_echo >&2 'You need git, curl, or wget to install nvm' @@ -373,7 +373,7 @@ nvm_do_install() { fi install_nvm_from_git elif [ "${METHOD}" = 'script' ]; then - if ! nvm_has nvm_download; then + if ! nvm_has curl || nvm_has wget; then nvm_echo >&2 "You need curl or wget to install nvm" exit 1 fi