.retry

.retry <count> <command>
Use the .retry command to allow a command to be retried on failure. The .retry command takes a single count argument that specifies the number of times to retry the command. The command to run is taken as the remainder of the arguments and thus the .retry command must be the final dot command for a step. For example, consider this command:
.retry 3 myscript.sh arg1 arg2 arg3
It runs "myscript.sh arg1 arg2 arg3" up to three times before failing the step. The first invocation of the command that returns a successful status stops the retry process.

Feedback