From e5d7d493b99046b00bd26bd1f3ce40f87d8506b0 Mon Sep 17 00:00:00 2001 From: Daniel Stockman Date: Wed, 31 Jul 2013 12:42:19 -0700 Subject: [PATCH] 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). --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index e2de24b..e85bfc8 100755 --- a/nvm.sh +++ b/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