From cebda7d35a0e0ec744bbe2fa918a4825ca264ce8 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 21 Mar 2014 09:23:16 -0700 Subject: [PATCH] When curl is not present, immediately bail out of `nvm install` with a nonzero exit code. Fixes #385. --- nvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nvm.sh b/nvm.sh index 34dde16..d06bd51 100644 --- a/nvm.sh +++ b/nvm.sh @@ -225,6 +225,7 @@ nvm() { if ! nvm_has "curl"; then echo 'NVM Needs curl to proceed.' >&2; + return 1 fi if [ $# -lt 2 ]; then