mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
CR: use :-
to fallback to origin
This commit is contained in:
parent
e82ea42706
commit
22b4bf3fe9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user