From 55a9eb0c44a2fae101b4d0a3de17b5d675d50390 Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Mon, 27 Jun 2022 08:00:14 +0200 Subject: [PATCH] adding first version of notify-syncthing-conflict --- notify-syncthing-conflict.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 notify-syncthing-conflict.sh diff --git a/notify-syncthing-conflict.sh b/notify-syncthing-conflict.sh new file mode 100755 index 0000000..558cdbb --- /dev/null +++ b/notify-syncthing-conflict.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +#Inclusion des fonctions partagées +. $HOME/bin/include.sh + +for path in $(grep -oE 'path="(\S*)"' $HOME/.config/syncthing/config.xml | sed -e 's/^path="//' -e 's/"$//');do +cd $path +files=$(find . -iname "*sync-conflict*") + if [ "$files" != "" ];then + notify-send -t 30000 -i syncthing "sync-conflict in $path" "$files" + fi +done +