From 997b3cacd124fbeaffba67d28f0c33f65e618175 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 9 Sep 2009 00:05:17 +0000 Subject: properly filtering exception list --- cron-sh/functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cron-sh') 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 -- cgit v1.2.1