Cooler incrementation of the FAIL counter
[einar-bin] / imgurgame.bash
index 763592987fe03b20b708abefc42aad6b25f1f81c..d1f9fdd4688594de2bccd1dce5689d2e746d1550 100755 (executable)
@@ -31,7 +31,7 @@ main() {
       ${BROWSER} ${URL} > /dev/null 2>&1
       local FAIL=0
     else
       ${BROWSER} ${URL} > /dev/null 2>&1
       local FAIL=0
     else
-      FAIL=$(( ${FAIL}+1 ))
+      ((FAIL++))
     fi
   done
 }
     fi
   done
 }