0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-11-25 18:50:38 +00:00

Merge pull request #15 from fanquake/fix_typos

doc: fix typos
This commit is contained in:
Neville Kadwa 2019-08-29 01:42:52 -04:00 committed by GitHub
commit 7d2caa94a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -32,8 +32,8 @@ Help:
-v, --verbose Verbose output -v, --verbose Verbose output
-t, --tries=# Set max retries: Default 10 -t, --tries=# Set max retries: Default 10
-s, --sleep=secs Constant sleep amount (seconds) -s, --sleep=secs Constant sleep amount (seconds)
-m, --min=secs Exponenetial Backoff: minimum sleep amount (seconds): Default 0.3 -m, --min=secs Exponential Backoff: minimum sleep amount (seconds): Default 0.3
-x, --max=secs Exponenetial Backoff: maximum sleep amount (seconds): Default 60 -x, --max=secs Exponential Backoff: maximum sleep amount (seconds): Default 60
-f, --fail="script +cmds" Fail Script: run in case of final failure -f, --fail="script +cmds" Fail Script: run in case of final failure
### Examples ### Examples

6
retry
View File

@ -17,7 +17,7 @@ __log_out() {
echo "$1" 1>&2 echo "$1" 1>&2
} }
# Paramters: max_tries min_sleep max_sleep constant_sleep fail_script EXECUTION_COMMAND # Parameters: max_tries min_sleep max_sleep constant_sleep fail_script EXECUTION_COMMAND
retry() retry()
{ {
local max_tries="$1"; shift local max_tries="$1"; shift
@ -83,8 +83,8 @@ Usage: $retry [options] -- execute command
-v, --verbose Verbose output -v, --verbose Verbose output
-t, --tries=# Set max retries: Default 10 -t, --tries=# Set max retries: Default 10
-s, --sleep=secs Constant sleep amount (seconds) -s, --sleep=secs Constant sleep amount (seconds)
-m, --min=secs Exponenetial Backoff: minimum sleep amount (seconds): Default 0.3 -m, --min=secs Exponential Backoff: minimum sleep amount (seconds): Default 0.3
-x, --max=secs Exponenetial Backoff: maximum sleep amount (seconds): Default 60 -x, --max=secs Exponential Backoff: maximum sleep amount (seconds): Default 60
-f, --fail="script +cmds" Fail Script: run in case of final failure -f, --fail="script +cmds" Fail Script: run in case of final failure
EOF EOF
} }