return not exit

master
Tim Caswell 2013-01-21 12:07:54 -06:00
parent 87a76af398
commit f605581c7d
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -351,7 +351,7 @@ nvm()
VERSION=`nvm_version $2`
if [ ! -d $NVM_DIR/$VERSION ]; then
echo "$VERSION version is not installed yet"
exit 1
return 1
fi
if [[ $PATH == *$NVM_DIR/*/bin* ]]; then
PATH=${PATH%$NVM_DIR/*/bin*}$NVM_DIR/$VERSION/bin${PATH#*$NVM_DIR/*/bin}