CR: use :- to fallback to origin

This commit is contained in:
Ryan Williams 2025-03-13 08:36:42 -04:00
parent e82ea42706
commit 22b4bf3fe9

View File

@ -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