Merge pull request #242 from koenpunt/patch-1

Return 1 so exit status is not null on error
master
Tim Caswell 2013-06-03 14:18:03 -07:00
commit 7cc6f37e69
1 changed files with 2 additions and 1 deletions

3
nvm.sh
View File

@ -321,13 +321,14 @@ nvm()
fi
else
echo "nvm: install $VERSION failed!"
return 1
fi
;;
"uninstall" )
[ $# -ne 2 ] && nvm help && return
if [[ $2 == `nvm_version` ]]; then
echo "nvm: Cannot uninstall currently-active node version, $2."
return
return 1
fi
VERSION=`nvm_version $2`
if [ ! -d $NVM_DIR/$VERSION ]; then