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
${BROWSER} ${URL} > /dev/null 2>&1
local FAIL=0
else
- FAIL=$(( ${FAIL}+1 ))
+ ((FAIL++))
fi
done
}