aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-03-09 22:16:29 +0800
committerAaron LI <aly@aaronly.me>2019-03-09 22:16:29 +0800
commit7970ed3568df6e916c8e235c57978cbb7c940d27 (patch)
tree2c72bca42b8b09ba83a9bd75d121135b21192646 /unix
parent7af8539b4fb56d720a0495743ad6b2b0ef4745f5 (diff)
downloadatoolbox-7970ed3568df6e916c8e235c57978cbb7c940d27.tar.bz2
unix/waiton.sh: Change interval argument from '-t' to '-i'
Diffstat (limited to 'unix')
-rwxr-xr-xunix/waiton.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/waiton.sh b/unix/waiton.sh
index 0689106..a82da3d 100755
--- a/unix/waiton.sh
+++ b/unix/waiton.sh
@@ -29,10 +29,10 @@ usage() {
Wait for process(s) to finish ...
usage:
- ${me} [-t interval] <pid1> [<pid2> ...]
+ ${me} [-i interval] <pid1> [<pid2> ...]
options:
- -t : number of seconds between every check.
+ -i : number of seconds between every check.
(default: 5)
example:
@@ -44,12 +44,12 @@ _EOF_
interval=5
-while getopts :ht: opt; do
+while getopts :1hi: opt; do
case ${opt} in
h)
usage
;;
- t)
+ i)
interval="${OPTARG}"
;;
\?)