net-dns/pdnsd: sleep only accepts integers in POSIX mode
authorLars Wendler <polynomial-c@gentoo.org>
Sat, 11 May 2019 18:59:41 +0000 (20:59 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Sat, 11 May 2019 18:59:41 +0000 (20:59 +0200)
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-dns/pdnsd/files/pdnsd.online.2

index 089f4e76e9cce19bc54f9e05cd2b595cbcc6b512..be33bfaa03e12e10de5439db2876f2b64bfcedb2 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 command="/usr/sbin/pdnsd-ctl"
@@ -10,10 +10,10 @@ depend() {
 
 wait_for_socket() {
        local i=0 pdnsd_socket="/var/cache/pdnsd/pdnsd.status"
-       while [ $i -lt 10 ]; do
+       while [ ${i} -lt 10 ]; do
                [ -S "${pdnsd_socket}" ] && return 0
-               i=$(($i+1))
-               sleep 1s
+               i=$((${i}+1))
+               sleep 1
        done
 
        return 1