diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-10 19:25:36 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-10 19:25:36 +0000 |
commit | 0f3226f954e4322c77a70329dfc20564338382bf (patch) | |
tree | 99c121d791fdf8b6be503aceed6ce59cd16cb5a7 /cron-sh | |
parent | 39ef8f1af383de5feb894d9b87ae2ca80ad7ef7f (diff) | |
download | msec-0f3226f954e4322c77a70329dfc20564338382bf.tar msec-0f3226f954e4322c77a70329dfc20564338382bf.tar.gz msec-0f3226f954e4322c77a70329dfc20564338382bf.tar.bz2 msec-0f3226f954e4322c77a70329dfc20564338382bf.tar.xz msec-0f3226f954e4322c77a70329dfc20564338382bf.zip |
Support excluding path from all checks.
Diffstat (limited to 'cron-sh')
-rw-r--r-- | cron-sh/functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh index a099d83..9555033 100644 --- a/cron-sh/functions.sh +++ b/cron-sh/functions.sh @@ -78,7 +78,7 @@ Filter() { else # get the rules EXCEPTIONS="" - for except in $(cat $exceptions | sed -e "/^$RULE /!d; s/^$RULE \(.*\)/\1/g"); do + for except in $(cat $exceptions | sed -e "/^\($RULE\|\*\) /!d; s/^\($RULE\|\*\) \(.*\)/\2/g"); do exc=${except//\//\\\/} EXCEPTIONS="$EXCEPTIONS -e /${exc}/d" done |