summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <dev@sinitax.com>2025-11-14 15:52:43 +0100
committerLouis Burda <dev@sinitax.com>2025-11-14 15:52:43 +0100
commit6462d6102e8671d15762eae9dac464d3527dc795 (patch)
tree9ac72ec2dc280a8c27418b260a5f9259b12c2e0d
parentc467087d3ccebf722aee499e5d6c6811d6ae9401 (diff)
downloadgit-sync-6462d6102e8671d15762eae9dac464d3527dc795.tar.gz
git-sync-6462d6102e8671d15762eae9dac464d3527dc795.zip
Add notification when sync fails
-rwxr-xr-xgit-syncd2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-syncd b/git-syncd
index 7d9456e..08f121a 100755
--- a/git-syncd
+++ b/git-syncd
@@ -20,7 +20,7 @@ declare -g -A git_syncd_sync_delay=()
sync() {
echo "starting sync.."
- cd "$repo" && git-sync -n -s
+ cd "$repo" && git-sync -n -s || notify-send "Sync failed for $repo"
}
watcher() {