Added zero length check, comment

This commit is contained in:
Kyle Kelley 2013-06-05 05:55:14 -05:00
parent 5e8e37a85d
commit e29bbb9862
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ if [ -d "$NVM_TARGET" ]; then
fi fi
# Allow for alternate NVM sources so we can use a local copy or a fork # Allow for alternate NVM sources so we can use a local copy or a fork
if [ ! -d "$NVM_GIT_SOURCE" ]; then if [ -z "$NVM_GIT_SOURCE" ]; then
export NVM_GIT_SOURCE="git://github.com/creationix/nvm.git" export NVM_GIT_SOURCE="git://github.com/creationix/nvm.git"
fi fi

3
nvm.sh
View File

@ -10,7 +10,8 @@ if [ ! -d "$NVM_DIR" ]; then
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}) && pwd) export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}) && pwd)
fi fi
if [ ! -d "$NODEJS_MIRROR" ]; then # Check to see if a MIRROR was defined
if [ -z "$NODEJS_MIRROR" ]; then
export NODEJS_MIRROR="http://nodejs.org/" export NODEJS_MIRROR="http://nodejs.org/"
fi fi