Skip to content

Commit 0195167

Browse files
authored
fix: uses timeout in nc as it is used with wget (#42)
Add -w 1 option to nc.
1 parent 2193507 commit 0195167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wait-for

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ wait_for() {
6363
while :; do
6464
case "$PROTOCOL" in
6565
tcp)
66-
nc -z "$HOST" "$PORT" > /dev/null 2>&1
66+
nc -w 1 -z "$HOST" "$PORT" > /dev/null 2>&1
6767
;;
6868
http)
6969
wget --timeout=1 -q "$HOST" -O /dev/null > /dev/null 2>&1

0 commit comments

Comments
 (0)