Cooler incrementation of the FAIL counter
authorEinar Jørgen Haraldseid <einar@haraldseid.net>
Sun, 1 Jun 2014 21:58:00 +0000 (23:58 +0200)
committerEinar Jørgen Haraldseid <einar@haraldseid.net>
Sun, 1 Jun 2014 21:58:00 +0000 (23:58 +0200)
imgurgame.bash

index 763592987fe03b20b708abefc42aad6b25f1f81c..d1f9fdd4688594de2bccd1dce5689d2e746d1550 100755 (executable)
@@ -31,7 +31,7 @@ main() {
       ${BROWSER} ${URL} > /dev/null 2>&1
       local FAIL=0
     else
-      FAIL=$(( ${FAIL}+1 ))
+      ((FAIL++))
     fi
   done
 }