Merge cae2eb71a2d7edd13a16b86d1bc0f749b25fd290 into 6b70c40f151ca051d403453bf019e1707b33bd5b

This commit is contained in:
Roy Ivy III 2024-10-23 22:39:31 -05:00 committed by GitHub
commit 0504fb6264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,7 +163,8 @@ install_nvm_from_git() {
} }
else else
# Cloning repo # 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!' nvm_echo >&2 'Failed to clone nvm repo. Please report this!'
exit 2 exit 2
} }