From db0051753aad8fed98b4052f37f7c613e74ee3b3 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 23 Sep 2014 23:47:17 -0700 Subject: [PATCH] Compare shell variable contents with a sentinel. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index efacc4a..c4ed1db 100755 --- a/install.sh +++ b/install.sh @@ -76,14 +76,14 @@ if [ -z "$METHOD" ]; then exit 1 fi else - if [ "$METHOD" = "git" ]; then + if [ "~$METHOD" = "~git" ]; then if ! nvm_has "git"; then echo >&2 "You need git to install nvm" exit 1 fi install_nvm_from_git fi - if [ "$METHOD" = "script" ]; then + if [ "~$METHOD" = "~script" ]; then if ! nvm_has "nvm_download"; then echo >&2 "You need curl or wget to install nvm" exit 1