From 2efca57f3ebce434add166be8789ece6c5dade63 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 4 Jan 2017 11:33:07 +0100 Subject: [PATCH] =?utf8?q?[watch=5Fsubscriptions]=20On=20s'assure=20que=20?= =?utf8?q?ce=20sont=20bien=20des=20dossiers=20mail=20qu'on=20consid=C3=A8r?= =?utf8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- watch_subscriptions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2