install requested version automatically if it isnt available

master
Nathan LaFreniere 2012-10-04 09:40:00 -07:00
parent 6505c98461
commit 3d65d55b5a
1 changed files with 2 additions and 1 deletions

3
nvm.sh
View File

@ -190,7 +190,8 @@ nvm()
fi
VERSION=`nvm_version $2`
if [ ! -d $NVM_DIR/$VERSION ]; then
echo "$VERSION version is not installed yet"
echo "$VERSION version is not installed yet... installing"
nvm install $VERSION
return;
fi