You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
divers/notify-syncthing-conflict.sh

14 lines
344 B
Bash

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