mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-17 02:53:43 +00:00
Merge cae2eb71a2d7edd13a16b86d1bc0f749b25fd290 into 24deac7ac53a5b435ce592807ff015a9e788a1fa
This commit is contained in:
commit
3d4be2f1b4
@ -163,7 +163,8 @@ install_nvm_from_git() {
|
||||
}
|
||||
else
|
||||
# Cloning repo
|
||||
command git clone "$(nvm_source)" --depth=1 "${INSTALL_DIR}" || {
|
||||
command git clone "$(nvm_source)" --depth=1 -o origin "${INSTALL_DIR}" 2> /dev/null \
|
||||
|| command git clone "$(nvm_source)" --depth=1 "${INSTALL_DIR}" || {
|
||||
nvm_echo >&2 'Failed to clone nvm repo. Please report this!'
|
||||
exit 2
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user