adding first version of notify-syncthing-conflict
This commit is contained in:
parent
bfc2fd889a
commit
55a9eb0c44
13
notify-syncthing-conflict.sh
Executable file
13
notify-syncthing-conflict.sh
Executable 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user