diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-12-25 23:08:51 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-12-25 23:08:51 +0900 |
| commit | dc851f4f1e91344c4dca369ddebfd27f1e8697aa (patch) | |
| tree | f5ddf29da514ba043bb58f52e6b397a0303c65ea | |
| parent | a1af749f7e1c036db46ad33de4bb9b48db8b3103 (diff) | |
modified bin/gitupdate
| -rwxr-xr-x | mac/.local/bin/gitupdate | 6 |
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 |
