don't shed all over the user's shell
parent
fab5db0ec8
commit
e9f35e7b15
6
nvm.sh
6
nvm.sh
|
@ -105,11 +105,11 @@ nvm()
|
||||||
fi
|
fi
|
||||||
[ "$NOCURL" ] && curl && return
|
[ "$NOCURL" ] && curl && return
|
||||||
VERSION=`nvm_version $2`
|
VERSION=`nvm_version $2`
|
||||||
export tarball=''
|
tarball=''
|
||||||
if [ "`curl -Is "http://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz" | grep '200 OK'`" != '' ]; then
|
if [ "`curl -Is "http://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz" | grep '200 OK'`" != '' ]; then
|
||||||
export tarball="http://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz"
|
tarball="http://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz"
|
||||||
elif [ "`curl -Is "http://nodejs.org/dist/node-$VERSION.tar.gz" | grep '200 OK'`" != '' ]; then
|
elif [ "`curl -Is "http://nodejs.org/dist/node-$VERSION.tar.gz" | grep '200 OK'`" != '' ]; then
|
||||||
export tarball="http://nodejs.org/dist/node-$VERSION.tar.gz"
|
tarball="http://nodejs.org/dist/node-$VERSION.tar.gz"
|
||||||
fi
|
fi
|
||||||
if (
|
if (
|
||||||
[ ! -z $tarball ] && \
|
[ ! -z $tarball ] && \
|
||||||
|
|
Loading…
Reference in New Issue