The .retry command allows 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 execute is taken as the remainder of the
arguments and thus the .retry command must be the final dot command for a
step. For example, the command
.retry 3 myscript.sh arg1 arg2 arg3
executes
"myscript.sh arg1 arg2 arg3" up to 3 times before failing
the step. The first invocation of the command that returns a successful status
stops the retry process.