Skip to content

Commit

Permalink
Merge pull request #28 from guoard/timeout-default
Browse files Browse the repository at this point in the history
Print timeout default value in help output
  • Loading branch information
sudo-bmitch authored May 12, 2024
2 parents 5ae8405 + df4b58e commit 2b3808e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ docker-stack-wait.sh [opts] stack_name
may be passed multiple times, do not include the stack name prefix
-r: treat a rollback as successful
-s sec: frequency to poll service state (default 5 sec)
-t sec: timeout to stop waiting
-t sec: timeout to stop waiting (default 3600 sec)
```

## Usage as container
Expand Down
2 changes: 1 addition & 1 deletion docker-stack-wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ usage() {
echo " may be passed multiple times, do not include the stack name prefix"
echo " -r: treat a rollback as successful"
echo " -s sec: frequency to poll service state (default $opt_s sec)"
echo " -t sec: timeout to stop waiting"
echo " -t sec: timeout to stop waiting (default $opt_t sec)"
[ "$opt_h" = "1" ] && exit 0 || exit 1
}
check_timeout() {
Expand Down

0 comments on commit 2b3808e

Please sign in to comment.