@taylorsilva this is due to set -e and ((retry++)) not working well together
In the script tick initially set to 0, using ((tick++)) will increase tick to 1 but also return 1 as exit code and that will trigger set -e cause the script to exit and cleanup, thus make retry feature not working.
@taylorsilva this is due to
set -e
and((retry++))
not working well togetherIn the script
tick
initially set to0
, using((tick++))
will increasetick
to1
but also return 1 as exit code and that will triggerset -e
cause the script to exit and cleanup, thus make retry feature not working.