Browse Source

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).
install_use_nvmrc
Daniel Stockman 11 years ago
parent
commit
e5d7d493b9
  1. 2
      nvm.sh

2
nvm.sh

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

Loading…
Cancel
Save