summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-25 23:08:51 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-25 23:08:51 +0900
commitdc851f4f1e91344c4dca369ddebfd27f1e8697aa (patch)
treef5ddf29da514ba043bb58f52e6b397a0303c65ea /mac
parenta1af749f7e1c036db46ad33de4bb9b48db8b3103 (diff)
modified bin/gitupdate
Diffstat (limited to 'mac')
-rwxr-xr-xmac/.local/bin/gitupdate6
1 files 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