mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
c046a16815
A utility to retry a command until the command succeeds. PR: 273730 Approved by: zirias (mentor) Reviewed by: diizzy Differential Revision: https://reviews.freebsd.org/D41862
9 lines
468 B
Plaintext
9 lines
468 B
Plaintext
Retry captures stdin into memory as the data is passed to the repeated command,
|
|
and this captured stdin is then replayed should the command be repeated. This
|
|
makes it possible to embed the retry tool into shell pipelines.
|
|
|
|
Retry captures stdout into memory, and if the command was successful stdout is
|
|
passed on to stdout as normal, while if the command was repeated stdout is
|
|
passed to stderr instead. This ensures that output is passed to stdout once and
|
|
once only.
|