From caf6208dbd25e9632d7a6291ca94eaccee7a5e75 Mon Sep 17 00:00:00 2001 From: Paul Nickerson Date: Tue, 2 Oct 2018 13:46:26 -0400 Subject: [PATCH] `install.sh`: Print an error and exit the script if $METHOD is set to something unexpected. --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 2115f3f..799dbe2 100755 --- a/install.sh +++ b/install.sh @@ -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