Browse Source

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 13 years ago
parent
commit
5596054445
  1. 2
      nvm.sh

2
nvm.sh

@ -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

Loading…
Cancel
Save