Skip to content

Commit

Permalink
install.sh: Print an error and exit the script if $METHOD is set to…
Browse files Browse the repository at this point in the history
… something unexpected.
  • Loading branch information
pnickerson-cashstar authored and ljharb committed Oct 2, 2018
1 parent 0c2efed commit caf6208
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit caf6208

Please sign in to comment.