interpret any code below 300 as success

This commit is contained in:
AlanCoding 2016-08-12 11:15:15 -04:00
parent efb66cad20
commit ba101573d6

View File

@ -18,8 +18,7 @@ do
then
echo "${status_code} received, encountered problem, halting."
exit 1
elif [[ $status_code -gt 200 ]]
then
else
exit 0
fi
attempt=$(( attempt + 1 ))