Avoid error from aliased `which` during install

The same fix as #207, just for fools like me who have `which` aliased to `type` in OS X. Without this escape, a very cryptic error message is emitted (though the install ultimately succeeds, as long as one actually has `curl` installed).
master
Daniel Stockman 2013-07-31 12:42:19 -07:00
parent e0bd3735f1
commit e5d7d493b9
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -201,7 +201,7 @@ nvm() {
local shasum='shasum' local shasum='shasum'
local nobinary local nobinary
if [ ! `which curl` ]; then if [ ! `\which curl` ]; then
echo 'NVM Needs curl to proceed.' >&2; echo 'NVM Needs curl to proceed.' >&2;
fi fi