From 22b4bf3fe94cd5ca43c4227d9f10c38eecec30e9 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Thu, 13 Mar 2025 08:36:42 -0400 Subject: [PATCH] CR: use `:-` to fallback to `origin` --- install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 918172e..dc9c3e5 100755 --- a/install.sh +++ b/install.sh @@ -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