From d4320aea829a210f5a489ac50db0caecab21d6b1 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Fri, 3 Aug 2018 12:59:16 +0200 Subject: [PATCH] Plugin postfix-rbl-blocked-mails: improve autoconf output --- plugins/postfix/postfix-rbl-blocked-mails | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/postfix/postfix-rbl-blocked-mails b/plugins/postfix/postfix-rbl-blocked-mails index 73fa2794..e7444e64 100755 --- a/plugins/postfix/postfix-rbl-blocked-mails +++ b/plugins/postfix/postfix-rbl-blocked-mails @@ -9,12 +9,12 @@ DATE=`date '+%b %e %H'` MAXLABEL=20 if [ "$1" = "autoconf" ]; then - if [[ -r $LOGFILE ]]; then - echo yes - else - echo no - fi - exit 0 + if [ -r "$LOGFILE" ]; then + echo yes + else + echo "no (log file not found: $LOGFILE)" + fi + exit 0 fi if [ "$1" = "config" ]; then