Added nvm git source option as environment variable

This commit is contained in:
Kyle Kelley 2013-05-02 16:52:41 -04:00
parent 3430425066
commit 5e8e37a85d

View File

@ -9,8 +9,14 @@ if [ -d "$NVM_TARGET" ]; then
exit exit
fi fi
# Allow for alternate NVM sources so we can use a local copy or a fork
if [ ! -d "$NVM_GIT_SOURCE" ]; then
export NVM_GIT_SOURCE="git://github.com/creationix/nvm.git"
fi
# Cloning to $NVM_TARGET # Cloning to $NVM_TARGET
git clone git://github.com/creationix/nvm.git $NVM_TARGET git clone $NVM_GIT_SOURCE $NVM_TARGET
echo echo