From ec89dd779ed67503678a752d2e0e68928183d831 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 1 Feb 2025 18:26:31 +0900 Subject: modified bin/gitupdate, created bin/webcam --- ar/.local/bin/gitupdate | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'ar/.local/bin/gitupdate') diff --git a/ar/.local/bin/gitupdate b/ar/.local/bin/gitupdate index fbb6ebe..72c5db6 100755 --- a/ar/.local/bin/gitupdate +++ b/ar/.local/bin/gitupdate @@ -72,25 +72,10 @@ repo_root=$(git rev-parse --show-toplevel || echo ".") cd "$repo_root" if [ "$repo_root" = "${PASSWORD_STORE_DIR:-${HOME}/.password-store}" ]; then - if git remote | grep -q "^home$"; then - # Push to both 'home' and 'origin' - pass git push home "$branch" && pass git push origin "$branch" - else - # Push only to 'origin' - pass git push origin "$branch" - fi + pass git remote | xargs -L1 pass git push -all else - # Pull and rebase before pushing git pull --rebase origin "$branch" - - # Check if the 'home' remote exists - if git remote | grep -q "^home$"; then - # Push to both 'home' and 'origin' - git push home "$branch" && git push origin "$branch" - else - # Push only to 'origin' - git push origin "$branch" - fi + git remote | xargs -L1 git push -all fi printf "\n[repo] %s(%s): %s\n" "$(basename "$repo_root")" "$branch" "$message" -- cgit v1.2.3