From 85deb233f11e94afea4a9450ddca4d1d34f8314f Mon Sep 17 00:00:00 2001 From: Olaf Rempel Date: Sun, 1 Oct 2006 13:47:07 +0200 Subject: [PATCH] webalizer: do not parse empty logs --- webalizer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webalizer.sh b/webalizer.sh index a58a560..7a8aae7 100644 --- a/webalizer.sh +++ b/webalizer.sh @@ -25,13 +25,13 @@ for config in $CONF_DIR/*.conf; do } # rotated, not compressed logfile - [ -f ${logfile}.1 ] && { + [ -s ${logfile}.1 ] && { # echo ${logfile}.1 $WEBALIZER -c $config -q ${logfile}.1 } # current logfile (as given in config) - [ -f ${logfile} ] && { + [ -s ${logfile} ] && { # echo $logfile $WEBALIZER -c $config -q }