host info updates
[distro-setup] / mailtest-check
index 034dfc6b45a7d6c72413fc2a70537fe1ca7d5182..856d774d32a82995fa93f31efdc17a46e9218ab5 100755 (executable)
@@ -40,7 +40,7 @@ e() { $int || return 0; printf "mailtest-check: %s\n" "$*"; }
 getspamdpid() {
   if [[ ! $spamdpid || ! -d /proc/$spamdpid ]]; then
     # try twice in case we are restarting, it happens.
-    for i in 1 2; do
+    for (( i=0; i<2; i++ )); do
       spamdpid=$(systemctl show --property MainPID --value spamassassin | sed 's/^[10]$//' ||:)
       if [[ $spamdpid ]]; then
         break