mirror of
https://github.com/thegeeklab/wait-for.git
synced 2024-11-22 12:20:39 +00:00
add check for installed netcat
This commit is contained in:
parent
39d6e2a18d
commit
450058159d
5
wait-for
5
wait-for
@ -71,6 +71,11 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ! [ -x "$(command -v nc)" ]; then
|
||||||
|
echoerr "Error: netcat is required for wait-for to run."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$HOST" = "" -o "$PORT" = "" ]; then
|
if [ "$HOST" = "" -o "$PORT" = "" ]; then
|
||||||
echoerr "Error: you need to provide a host and port to test."
|
echoerr "Error: you need to provide a host and port to test."
|
||||||
usage 2
|
usage 2
|
||||||
|
Loading…
Reference in New Issue
Block a user