When curl is not present, immediately bail out of `nvm install` with a nonzero exit code. Fixes #385.

master
Jordan Harband 2014-03-21 09:23:16 -07:00
parent 31c5406780
commit cebda7d35a
1 changed files with 1 additions and 0 deletions

1
nvm.sh
View File

@ -225,6 +225,7 @@ nvm() {
if ! nvm_has "curl"; then
echo 'NVM Needs curl to proceed.' >&2;
return 1
fi
if [ $# -lt 2 ]; then