From d817427673c42988b0bfcdc3b50fe89e65a942e6 Mon Sep 17 00:00:00 2001 From: Bernie Green <26454402+bgreen280@users.noreply.github.com> Date: Thu, 5 Mar 2026 12:50:16 -0500 Subject: [PATCH 1/2] fix: remove redundant 'ret' --- tools/upgrade.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/upgrade.sh b/tools/upgrade.sh index 01719d217..be8ba2f02 100755 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -225,8 +225,6 @@ git config receive.fsck.zeroPaddedFilemode ignore resetAutoStash=$(git config --bool rebase.autoStash 2>/dev/null) git config rebase.autoStash true -local ret=0 - # repository settings remote=${"$(git config --local oh-my-zsh.remote)":-origin} branch=${"$(git config --local oh-my-zsh.branch)":-master} From 14a6b0d3d94519df1cb2fb1dc80200ce073b1d3f Mon Sep 17 00:00:00 2001 From: Bernie Green <26454402+bgreen280@users.noreply.github.com> Date: Thu, 5 Mar 2026 12:52:09 -0500 Subject: [PATCH 2/2] fix: remove redundant 'local' declaration --- tools/upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/upgrade.sh b/tools/upgrade.sh index be8ba2f02..2ca1d8967 100755 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -1,7 +1,7 @@ #!/usr/bin/env zsh set +u # disable nounset -local ret=0 # exit code +ret=0 # exit code # Protect against running with shells other than zsh if [ -z "$ZSH_VERSION" ]; then