diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-09 00:05:17 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-09-09 00:05:17 +0000 |
commit | 997b3cacd124fbeaffba67d28f0c33f65e618175 (patch) | |
tree | 0e1f78bf404d6e6ec5b2b5937647f14a6f02ea2e /cron-sh | |
parent | d0c188b1493e997403a82bbb3dbd6e567171507d (diff) | |
download | msec-997b3cacd124fbeaffba67d28f0c33f65e618175.tar msec-997b3cacd124fbeaffba67d28f0c33f65e618175.tar.gz msec-997b3cacd124fbeaffba67d28f0c33f65e618175.tar.bz2 msec-997b3cacd124fbeaffba67d28f0c33f65e618175.tar.xz msec-997b3cacd124fbeaffba67d28f0c33f65e618175.zip |
properly filtering exception list
Diffstat (limited to 'cron-sh')
-rw-r--r-- | cron-sh/functions.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh index af08ad4..a099d83 100644 --- a/cron-sh/functions.sh +++ b/cron-sh/functions.sh @@ -82,7 +82,11 @@ Filter() { exc=${except//\//\\\/} EXCEPTIONS="$EXCEPTIONS -e /${exc}/d" done - FILTER="sed $EXCEPTIONS" + if [ ! -n "$EXCEPTIONS" ]; then + FILTER="cat" + else + FILTER="sed $EXCEPTIONS" + fi fi $FILTER < $FILE > ${FILE}.tmp mv -f ${FILE}.tmp $FILE |