Followup per https://github.com/creationix/nvm/pull/452#issuecomment-48151847
diff --git a/install.sh b/install.sh
index fa8443e..1600a7d 100755
--- a/install.sh
+++ b/install.sh
@@ -11,7 +11,7 @@
NVM_DIR="$HOME/.nvm"
fi
-nvm_curl() {
+nvm_download() {
if nvm_has "curl"; then
curl $*
elif nvm_has "wget"; then
@@ -59,7 +59,7 @@
else
echo "=> Downloading nvm as script to '$NVM_DIR'"
fi
- nvm_curl -s "$NVM_SOURCE" -o "$NVM_DIR/nvm.sh" || {
+ nvm_download -s "$NVM_SOURCE" -o "$NVM_DIR/nvm.sh" || {
echo >&2 "Failed to download '$NVM_SOURCE'.."
return 1
}
@@ -69,7 +69,7 @@
# Autodetect install method
if nvm_has "git"; then
install_nvm_from_git
- elif nvm_has "nvm_curl"; then
+ elif nvm_has "nvm_download"; then
install_nvm_as_script
else
echo >&2 "You need git, curl, or wget to install nvm"
@@ -84,7 +84,7 @@
install_nvm_from_git
fi
if [ "$METHOD" = "script" ]; then
- if ! nvm_has "nvm_curl"; then
+ if ! nvm_has "nvm_download"; then
echo >&2 "You need curl or wget to install nvm"
exit 1
fi