aboutsummaryrefslogtreecommitdiff
path: root/bin/untill
diff options
context:
space:
mode:
Diffstat (limited to 'bin/untill')
-rwxr-xr-xbin/untill5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/untill b/bin/untill
index 738b5bb..9980c81 100755
--- a/bin/untill
+++ b/bin/untill
@@ -4,7 +4,7 @@ set -eu
usage() {
cat <<-'EOF'
Usage:
- until [-m MAX] [-n SECONDS] -- COMMAND...
+ until [-m MAX] [-n SECONDS] COMMAND...
until -h
EOF
}
@@ -12,12 +12,15 @@ usage() {
help() {
cat <<-'EOF'
+
Options:
-n SECONDS the amount of seconds to sleep between
attempts (default: 5)
-m MAX the maximum number of attempts (default: unlimited)
-h, --help show this message
+ COMMAND the shell command to be executed
+
Runs COMMAND until it eventually succeeds, trying atmost MAX
times. Sleep SECONDS between attempts.