summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-25 23:07:38 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-25 23:07:38 +0900
commita1af749f7e1c036db46ad33de4bb9b48db8b3103 (patch)
tree655e976cb5467e02915be890b167142769fd3c47
parent0eb2587ca9b4cccb0602a4d585e75ea271c47f63 (diff)
modified bin/gitupdate
-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 b36bfe8..0a7abb6 100755
--- a/mac/.local/bin/gitupdate
+++ b/mac/.local/bin/gitupdate
@@ -76,12 +76,12 @@ else
# Add and commit changes
git add --all .
git commit -m "$message"
- if git remote $git_current_remote | grep -q origin; then
+ if $(git remote $git_current_remote | grep -q origin); then
remote="origin"
else
remote=$(git remote $git_current_remote)
fi
- git pull --rebase "$remote" "$branch"
+ git pull --rebase $remote "$branch"
git remote | xargs -L1 git push --all
fi