Merge pull request #354 from simontabor/patch-1

don't curl if version is specified + installed
master
Jordan Harband 2014-02-07 10:32:23 -08:00
commit c19535a3f5
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -241,6 +241,8 @@ nvm() {
nobinary=1 nobinary=1
fi fi
[ -d "$NVM_DIR/$1" ] && echo "$1 is already installed." && return
VERSION=`nvm_remote_version $1` VERSION=`nvm_remote_version $1`
ADDITIONAL_PARAMETERS='' ADDITIONAL_PARAMETERS=''