mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Added zero length check, comment
This commit is contained in:
parent
5e8e37a85d
commit
e29bbb9862
@ -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
3
nvm.sh
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user