From: Vincent Le Gallic Date: Wed, 4 Jan 2017 10:33:07 +0000 (+0100) Subject: [watch_subscriptions] On s'assure que ce sont bien des dossiers mail qu'on considère X-Git-Url: http://gitweb.pimeys.fr/?p=scripts-20-100.git;a=commitdiff_plain;h=2efca57f3ebce434add166be8789ece6c5dade63 [watch_subscriptions] On s'assure que ce sont bien des dossiers mail qu'on considère --- diff --git a/watch_subscriptions.sh b/watch_subscriptions.sh index 2f807f2..28b8b28 100755 --- a/watch_subscriptions.sh +++ b/watch_subscriptions.sh @@ -10,11 +10,11 @@ MAILDIR=~/Mail cd $MAILDIR -diff -u <(cat subscriptions | sort) <(find . -maxdepth 1 -mindepth 1 -type d | sort | sed 's/^...//') +diff -u <(cat subscriptions | sort) <(find . -maxdepth 1 -mindepth 1 -type d -regex "\./\..*" | sort | sed 's/^...//') if [[ "$1" = *"apply"* ]] then - find . -maxdepth 1 -mindepth 1 -type d | sort | sed 's/^...//' > subscriptions + find . -maxdepth 1 -mindepth 1 -type d -regex "\./\..*" | sort | sed 's/^...//' > subscriptions echo echo "** APPLIED **" fi