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'.
master
A.J 2012-12-09 05:17:13 +09:00
parent 68f7dc9cb3
commit 5596054445
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -185,7 +185,7 @@ nvm()
echo 'NVM Needs curl to proceed.' >&2; echo 'NVM Needs curl to proceed.' >&2;
fi fi
if [ ! `which shasum > /dev/null 2>&1` ]; then if [ -z "`which shasum`" ]; then
shasum='sha1sum' shasum='sha1sum'
fi fi