Browse Source

`install.sh`: Print an error and exit the script if $METHOD is set to something unexpected.

Paul Nickerson 6 years ago committed by Jordan Harband
parent
commit
caf6208dbd
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 3
      install.sh

3
install.sh

@ -329,6 +329,9 @@ nvm_do_install() { @@ -329,6 +329,9 @@ nvm_do_install() {
exit 1
fi
install_nvm_as_script
else
echo >&2 "The environment variable \$METHOD is set to \"${METHOD}\", which is not recognized as a valid installation method."
exit 1
fi
echo

Loading…
Cancel
Save