Skip to content

Commit 1e47fb8

Browse files
wilsonsilvaikatz-drizly
authored andcommitted
Fix the silent timeout error when netcat is not installed
1 parent ae37d72 commit 1e47fb8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wait-for

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ OLD_HOST=$HOST
88
TIMEOUT=15
99
QUIET=0
1010

11+
if ! which nc >/dev/null; then
12+
echo "Netcat is not installed. This script requires netcat to work correctly."
13+
exit 1
14+
fi
15+
1116
echoerr() {
1217
if [ "$QUIET" -ne 1 ]; then printf "%s\n" "$*" 1>&2; fi
1318
}

0 commit comments

Comments
 (0)