mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Added nvm git source option as environment variable
This commit is contained in:
parent
3430425066
commit
5e8e37a85d
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user