don't curl if version is specified + installed

Removes CURL to match the version pattern if an explicit version (e.g. `v0.10.25`) is specified and already installed.
master
Simon Tabor 2014-02-06 13:02:57 +00:00
parent eca6118023
commit 9af7409e4a
1 changed files with 2 additions and 0 deletions

2
nvm.sh
View File

@ -240,6 +240,8 @@ nvm() {
if [ "$os" = "freebsd" ]; then if [ "$os" = "freebsd" ]; then
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=''