mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
install.sh
: Print an error and exit the script if $METHOD is set to something unexpected.
This commit is contained in:
parent
0c2efed407
commit
caf6208dbd
@ -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…
Reference in New Issue
Block a user