]> granicus.if.org Git - ejabberd/commitdiff
Fix bashism in 'ejabberdctl started'
authorBadlop <badlop@process-one.net>
Thu, 11 Feb 2010 10:02:07 +0000 (11:02 +0100)
committerBadlop <badlop@process-one.net>
Thu, 11 Feb 2010 10:02:57 +0000 (11:02 +0100)
src/ejabberdctl.template

index 438481bb82129da7b5097dcdf23aaad588e13153..2df7be710e3ed0aab0eacd7ef3d7a14ccabcd50a 100644 (file)
@@ -266,7 +266,7 @@ wait_for_status()
     status=4
     while [ $status -ne $1 ]; do
         sleep $3
-        let timeout=timeout-1
+        timeout=$(($timeout - 1))
         [ $timeout -eq 0 ] && {
             status=$1
         } || {