summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-25 23:09:03 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-25 23:09:03 +0900
commit0243e287d7d5ce96d7353298ba1373c709bbdbe3 (patch)
tree71dc2977afa43b3ca8fff6aa5c36422ee8e47fc1 /mac
parentdc851f4f1e91344c4dca369ddebfd27f1e8697aa (diff)
modified bin/gitupdate
Diffstat (limited to 'mac')
-rwxr-xr-xmac/.local/bin/gitupdate4
1 files changed, 2 insertions, 2 deletions
diff --git a/mac/.local/bin/gitupdate b/mac/.local/bin/gitupdate
index 77415c6..82fa58b 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 -v | grep -qx origin; then
+ if git remote | grep -qx origin; then
remote=origin
else
- remote=$(git remote -v | head -n 1)
+ remote=$(git remote | head -n 1)
fi
git pull --rebase $remote "$branch"
git remote | xargs -L1 git push --all