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
|
local remote
|
||||||
remote="$(git config --global clone.defaultRemoteName || true)"
|
remote="$(git config --global clone.defaultRemoteName || true)"
|
||||||
if [ -z "$remote" ]; then
|
remote="${remote:-origin}"
|
||||||
remote=origin
|
|
||||||
fi
|
|
||||||
local fetch_error
|
local fetch_error
|
||||||
if [ -d "$INSTALL_DIR/.git" ]; then
|
if [ -d "$INSTALL_DIR/.git" ]; then
|
||||||
# Updating repo
|
# Updating repo
|
||||||
|
Loading…
Reference in New Issue
Block a user