Merge 33c91398bf into 087ce15ccd
This commit is contained in:
commit
656778e0f2
3
nvm.sh
3
nvm.sh
|
|
@ -108,6 +108,9 @@ nvm()
|
|||
fi
|
||||
[ "$NOCURL" ] && curl && return
|
||||
VERSION=`nvm_version $2`
|
||||
|
||||
[ -d "$NVM_DIR/$VERSION" ] && echo "$VERSION is already installed." && return
|
||||
|
||||
tarball=''
|
||||
if [ "`curl -Is "http://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz" | grep '200 OK'`" != '' ]; then
|
||||
tarball="http://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz"
|
||||
|
|
|
|||
Loading…
Reference in New Issue