don't shed all over the user's shell

master
Kieran Huggins 2011-07-28 01:31:35 -04:00
parent fab5db0ec8
commit e9f35e7b15
1 changed files with 3 additions and 3 deletions

6
nvm.sh
View File

@ -105,11 +105,11 @@ nvm()
fi
[ "$NOCURL" ] && curl && return
VERSION=`nvm_version $2`
export tarball=''
tarball=''
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
export tarball="http://nodejs.org/dist/node-$VERSION.tar.gz"
tarball="http://nodejs.org/dist/node-$VERSION.tar.gz"
fi
if (
[ ! -z $tarball ] && \