From 99118feb2debc79f44f53366b7ab706d384a2313 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 25 Dec 2025 23:09:42 +0900 Subject: modified bin/gitupdate, modified bin/gitupdate --- ar/.local/bin/gitupdate | 7 ++++++- mac/.local/bin/gitupdate | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ar/.local/bin/gitupdate b/ar/.local/bin/gitupdate index 1583de6..6ee163a 100755 --- a/ar/.local/bin/gitupdate +++ b/ar/.local/bin/gitupdate @@ -73,7 +73,12 @@ else # Add and commit changes git add --all . git commit -m "$message" - git pull --rebase $git_current_remote "$branch" + if git remote | grep -qx origin; then + remote=origin + else + remote=$(git remote | head -n 1) + fi + git pull --rebase "$remote" "$branch" git remote | xargs -L1 git push --all fi diff --git a/mac/.local/bin/gitupdate b/mac/.local/bin/gitupdate index 82fa58b..692a365 100755 --- a/mac/.local/bin/gitupdate +++ b/mac/.local/bin/gitupdate @@ -81,7 +81,7 @@ else else remote=$(git remote | head -n 1) fi - git pull --rebase $remote "$branch" + git pull --rebase "$remote" "$branch" git remote | xargs -L1 git push --all fi -- cgit v1.2.3