diff options
author | Michael Biebl <biebl@debian.org> | 2008-12-17 00:29:15 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2008-12-17 00:29:15 +0100 |
commit | 860b6dc1723346f48de09cd3a3cdae67fa4d60f2 (patch) | |
tree | 16affe338472bfa88818dc756e6b5db5508515e2 /debian/rsyslog.postinst | |
parent | 5f95a5d63043a7d89d3b5248178d5f8b190ea763 (diff) | |
download | rsyslog-860b6dc1723346f48de09cd3a3cdae67fa4d60f2.tar.gz |
Use $(($var)) syntax for arithmetic expressions
dash from etch is
not SUSv3 compliant in that regard which leads to failing dist upgrades
when dash is used as /bin/sh. Closes: #508943
Diffstat (limited to 'debian/rsyslog.postinst')
-rw-r--r-- | debian/rsyslog.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/rsyslog.postinst b/debian/rsyslog.postinst index 8d93582..ed856d9 100644 --- a/debian/rsyslog.postinst +++ b/debian/rsyslog.postinst @@ -36,7 +36,7 @@ rotate_old_log_files() if [ "$rotate" = "yes" ] ; then for s in $(seq 9 -1 1) ; do if [ -e $dir/$f.$s.gz ]; then - mv $dir/$f.$s.gz $dir/$f.$((s+1)).gz + mv $dir/$f.$s.gz $dir/$f.$(($s+1)).gz fi done mv $dir/$f.0 $dir/$f.1 |