Consistently returning exit code 1 when version is not installed yet.

master
Jordan Harband 2014-06-20 11:45:25 -07:00
parent f213167ef0
commit 4c38f507f5
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -543,7 +543,7 @@ nvm() {
if [ ! -d "$NVM_DIR/$VERSION" ]; then
echo "$VERSION version is not installed yet" >&2
return;
return 1
fi
RUN_NODE_PATH=`nvm_strip_path "$NODE_PATH" "/lib/node_modules"`
RUN_NODE_PATH=`nvm_prepend_path "$NODE_PATH" "$NVM_DIR/$VERSION/lib/node_modules"`