Format script
This commit is contained in:
parent
764959e70a
commit
4573d0ae94
1 changed files with 10 additions and 5 deletions
|
@ -1,7 +1,12 @@
|
||||||
if [ $# -ne 2 ]
|
#!/bin/sh
|
||||||
then
|
|
||||||
echo "Hostname and port of the service was not specified"
|
if [ $# -ne 2 ]; then
|
||||||
exit 1
|
echo "Usage: $0 <hostname> <port>" >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while ! nc -z $1 $2; do echo "$1:$2 not yet available, waiting" && sleep 1; done; echo "Done"
|
while ! nc -z "$1" "$2"; do
|
||||||
|
echo "$1:$2 not yet available, waiting"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
echo "Done"
|
||||||
|
|
Loading…
Reference in a new issue