aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cron-sh/functions.sh6
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