chore: adjust script formatting

This commit is contained in:
Robert Kaussow 2022-07-15 09:02:45 +02:00
parent d86854cde4
commit 2aff7ba92c
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -12,7 +12,7 @@ usage() {
cat <<USAGE >&2 cat <<USAGE >&2
usage: wait-for host:port [-t timeout] [-- command args] usage: wait-for host:port [-t timeout] [-- command args]
Synchronize services like docker containers and wait for readiness. Synchronize services like containers and wait for readiness.
optional arguments: optional arguments:
-q | --quiet Do not output any status messages -q | --quiet Do not output any status messages
@ -39,8 +39,7 @@ wait_for() {
exit 1 exit 1
} }
while [ $# -gt 0 ] while [ $# -gt 0 ]; do
do
case "$1" in case "$1" in
*:*) *:*)
WAITFOR_HOST=$(printf "%s\n" "$1" | cut -d : -f 1) WAITFOR_HOST=$(printf "%s\n" "$1" | cut -d : -f 1)