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

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