Sunday, January 29, 2023

Re: [New] sysutils/try_repeat

Hello,

On 2023/01/29 09:20:45 +0000, Laurence Tratt <laurie@tratt.net> wrote:
> Please find attached a port for try_repeat 0.2.0
> <https://tratt.net/laurie/src/try_repeat/>:
>
> try_repeat tries to run a command n times, exiting early if the command
> exits with a non-zero exit code. This is useful when trying to find
> intermittent failures in a command.
>
> [...]

seems like a nice little utility to keep at hand :)

ok op@ to import

I'd shorten the COMMENT down to "run a command multiple times" leaving
the task of describing the early exit to the DESCR, but it's just a
matter of preference, it's probably already fine as-is.


Thanks!

No comments:

Post a Comment