mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 06:41:50 +00:00
Merge pull request #354 from simontabor/patch-1
don't curl if version is specified + installed
This commit is contained in:
commit
c19535a3f5
2
nvm.sh
2
nvm.sh
@ -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=''
|
||||||
|
Loading…
Reference in New Issue
Block a user