X-Git-Url: http://gitweb.pimeys.fr/?p=scripts-20-100.git;a=blobdiff_plain;f=watch_subscriptions.sh;h=28b8b28f8b7feb5cf7da66eddccfc19f167f08af;hp=2f807f217e0a65de48e231ca2ba070d1e3dbd89b;hb=2efca57f3ebce434add166be8789ece6c5dade63;hpb=23c577eb09cff8c08d157c3a7625fe681abae166 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