Closed barrycohen closed 6 years ago
Thank you for this report! I decided to fix it a little differently as originally intended.
Excellent, thanks for the quick fix. Awesome tool, by the way!
@barrycohen Thanks! If you wouldn't mind adding a star? Apparentlly, the OSX brew package manager wants to see 50 stars before adding any formula.
No problem, added. Good luck!
If a command fails a few times but then succeeds on the final attempt,
retry
will still printRetries exhausted
or
Retries exhaused, running fail script
and then return 0.
I think the line
if [ $attempts -gt $max_tries ]; then
needs to be
if [[ $return_code -ne 0 && $attempts -gt $max_tries ]]; then
to fix this.