seq counts upwards

This commit is contained in:
cn 2013-09-10 21:40:40 +02:00
parent a68da5d4c1
commit 260ed7d3db
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ SPOOLDIR=${spooldir:-$POSTCONFSPOOL}
syslogXmins() {
MINUTES_MINUS_ONE=`expr $MINUTES - 1`
#for (( i = $MINUTES; i > 0; i-- )) ; do
for i in $(seq $MINUTES_MINUS_ONE 0) ; do
for i in $(seq 0 $MINUTES_MINUS_ONE) ; 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.