[Pkg-samba-maint] r3928 - trunk/ctdb/debian

sathieu at alioth.debian.org sathieu at alioth.debian.org
Thu Oct 13 18:20:26 UTC 2011


Author: sathieu
Date: 2011-10-13 18:20:25 +0000 (Thu, 13 Oct 2011)
New Revision: 3928

Modified:
   trunk/ctdb/debian/ctdb.init
Log:
$(( )) is not a bashism, so we can match upstream and replace `expr $count + 1`

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04

Modified: trunk/ctdb/debian/ctdb.init
===================================================================
--- trunk/ctdb/debian/ctdb.init	2011-10-10 18:47:43 UTC (rev 3927)
+++ trunk/ctdb/debian/ctdb.init	2011-10-13 18:20:25 UTC (rev 3928)
@@ -372,7 +372,7 @@
     fi
     while pkill -0 -f $ctdbd ; do
         sleep 1
-        count=`expr $count + 1`
+        count=$(($count + 1))
         [ $count -gt 10 ] && {
 	        eval_gettext "killing ctdbd "
 	        pkill -9 -f $ctdbd





More information about the Pkg-samba-maint mailing list