diff --git a/install.sh b/install.sh index d1d23e1..3dce7e0 100755 --- a/install.sh +++ b/install.sh @@ -163,7 +163,7 @@ install_nvm_from_git() { } else # Cloning repo - command git clone "$(nvm_source)" --depth=1 "${INSTALL_DIR}" || { + command git clone -o origin "$(nvm_source)" --depth=1 "${INSTALL_DIR}" || { nvm_echo >&2 'Failed to clone nvm repo. Please report this!' exit 2 }