divers/notify-syncthing-conflict.sh
2022-06-27 08:00:14 +02:00

14 lines
344 B
Bash
Executable File

#! /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