diff --git a/wait-for b/wait-for index ddfc39e..418de72 100755 --- a/wait-for +++ b/wait-for @@ -3,6 +3,11 @@ TIMEOUT=15 QUIET=0 +if ! which nc >/dev/null; then + echo "Netcat is not installed. This script requires netcat to work correctly." + exit 1 +fi + echoerr() { if [ "$QUIET" -ne 1 ]; then printf "%s\n" "$*" 1>&2; fi }