Permalink
Browse files

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'.
  • Loading branch information...
1 parent 68f7dc9 commit 5596054445c8347d4b4e44af03e8fdb637945a1f @andrwj andrwj committed Dec 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nvm.sh
View
2 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

0 comments on commit 5596054

Please sign in to comment.