X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/20bbdb7d638345f922e870ea5ebe576ff71659c0..4111dae40affd9355a92c91ee2c45a71f901ee19:/imgurgame.bash?ds=sidebyside diff --git a/imgurgame.bash b/imgurgame.bash index 66bbe4e..d1f9fdd 100755 --- a/imgurgame.bash +++ b/imgurgame.bash @@ -15,7 +15,7 @@ imgururl() { testimgur() { local URL=${1} local RESULT=$(curl -s -o /dev/null -I -w "%{http_code}" ${URL}) - if [[ ${RESULT} == 200 ]]; then + if [[ ${RESULT} == "200" ]]; then echo true else echo false @@ -31,7 +31,7 @@ main() { ${BROWSER} ${URL} > /dev/null 2>&1 local FAIL=0 else - FAIL=$(( ${FAIL}+1 )) + ((FAIL++)) fi done }