From a68da5d4c10612eaec7138a56943ec231a988944 Mon Sep 17 00:00:00 2001 From: cn Date: Tue, 10 Sep 2013 21:28:40 +0200 Subject: [PATCH] Fix syntax for sh --- postfix_mailqueue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/postfix_mailqueue b/postfix_mailqueue index 0db064d..21dcf27 100755 --- a/postfix_mailqueue +++ b/postfix_mailqueue @@ -93,8 +93,9 @@ SPOOLDIR=${spooldir:-$POSTCONFSPOOL} . $MUNIN_LIBDIR/plugins/plugin.sh syslogXmins() { - for (( i = $MINUTES; i > 0; i-- )) ; do - #for i in 4 3 2 1 0; do + MINUTES_MINUS_ONE=`expr $MINUTES - 1` + #for (( i = $MINUTES; i > 0; i-- )) ; do + for i in $(seq $MINUTES_MINUS_ONE 0) ; do # In %_d the underscore is important since it demands `date` # to pad with spaces (like syslog for e.g. "Jan 1" to "Jan 9") # instead of zeros.