mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-01-07 07:47:16 +08:00
CR: use :- to fallback to origin
This commit is contained in:
@@ -141,9 +141,7 @@ install_nvm_from_git() {
|
||||
|
||||
local remote
|
||||
remote="$(git config --global clone.defaultRemoteName || true)"
|
||||
if [ -z "$remote" ]; then
|
||||
remote=origin
|
||||
fi
|
||||
remote="${remote:-origin}"
|
||||
local fetch_error
|
||||
if [ -d "$INSTALL_DIR/.git" ]; then
|
||||
# Updating repo
|
||||
|
||||
Reference in New Issue
Block a user