From dc851f4f1e91344c4dca369ddebfd27f1e8697aa Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 25 Dec 2025 23:08:51 +0900 Subject: modified bin/gitupdate --- mac/.local/bin/gitupdate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mac/.local/bin/gitupdate b/mac/.local/bin/gitupdate index 0a7abb6..77415c6 100755 --- a/mac/.local/bin/gitupdate +++ b/mac/.local/bin/gitupdate @@ -76,10 +76,10 @@ else # Add and commit changes git add --all . git commit -m "$message" - if $(git remote $git_current_remote | grep -q origin); then - remote="origin" + if git remote -v | grep -qx origin; then + remote=origin else - remote=$(git remote $git_current_remote) + remote=$(git remote -v | head -n 1) fi git pull --rebase $remote "$branch" git remote | xargs -L1 git push --all -- cgit v1.2.3