From 5596054445c8347d4b4e44af03e8fdb637945a1f Mon Sep 17 00:00:00 2001 From: "A.J" Date: Sun, 9 Dec 2012 05:17:13 +0900 Subject: [PATCH] fixed wrong condition checking for 'shasum' (I'm using Mac OS 10.8.2) line 188, `which shasum > /dev/null 2>&1` will be replaced by: '/usr/bin/shasum > /dev/null 2>&1' but, `/usr/bin/shasum` needs filename argument which is ommited and the test results always 'false'. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 89db7ce..303925b 100755 --- a/nvm.sh +++ b/nvm.sh @@ -185,7 +185,7 @@ nvm() echo 'NVM Needs curl to proceed.' >&2; fi - if [ ! `which shasum > /dev/null 2>&1` ]; then + if [ -z "`which shasum`" ]; then shasum='sha1sum' fi