From aa92f5c88afef8f7d10c18a22e501ff81da32f33 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 28 Jan 2026 02:18:32 +0200 Subject: [PATCH] Handle failures updating Git repo packages gracefully --- .local/bin/resync-live-git-repo-packages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/resync-live-git-repo-packages b/.local/bin/resync-live-git-repo-packages index bf0229a..089fe33 100755 --- a/.local/bin/resync-live-git-repo-packages +++ b/.local/bin/resync-live-git-repo-packages @@ -6,7 +6,7 @@ IFS=$'\n\t' REPO_DIR="$(systemd-path user-state-private)"/agentbox if [ -d "${REPO_DIR}" ] then - git -C "${REPO_DIR}" pull + git -C "${REPO_DIR}" pull || true else cd "$(systemd-path user-state-private)" || exit git clone https://github.com/libohad-dev/agentbox @@ -17,7 +17,7 @@ fi REPO_DIR="$(systemd-path user-state-private)"/git-sync if [ -d "${REPO_DIR}" ] then - git -C "${REPO_DIR}" pull + git -C "${REPO_DIR}" pull || true else cd "$(systemd-path user-state-private)" || exit git clone https://github.com/simonthum/git-sync