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 then
echo "${status_code} received, encountered problem, halting." echo "${status_code} received, encountered problem, halting."
exit 1 exit 1
elif [[ $status_code -gt 200 ]] else
then
exit 0 exit 0
fi fi
attempt=$(( attempt + 1 )) attempt=$(( attempt + 1 ))