adding first version of notify-syncthing-conflict

This commit is contained in:
Djan GICQUEL 2022-06-27 08:00:14 +02:00
parent bfc2fd889a
commit 55a9eb0c44
1 changed files with 13 additions and 0 deletions

13
notify-syncthing-conflict.sh Executable file
View File

@ -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