mirror of
https://github.com/thegeeklab/wait-for.git
synced 2024-06-02 08:29:51 +02:00
rework /dev/tcp call
This commit is contained in:
parent
08c7727481
commit
98f28dd132
2
wait-for
2
wait-for
|
@ -31,7 +31,7 @@ wait_for() {
|
||||||
nc -w 1 -z "$WAITFOR_HOST" "$WAITFOR_PORT" >/dev/null 2>&1
|
nc -w 1 -z "$WAITFOR_HOST" "$WAITFOR_PORT" >/dev/null 2>&1
|
||||||
elif [ $HAS_BASH = 1 ]; then
|
elif [ $HAS_BASH = 1 ]; then
|
||||||
# shellcheck disable=SC3025
|
# shellcheck disable=SC3025
|
||||||
(echo >/dev/tcp/"$WAITFOR_HOST"/"$WAITFOR_PORT") >/dev/null 2>&1
|
bash -c "</dev/tcp/$WAITFOR_HOST/$WAITFOR_PORT" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
result=$?
|
result=$?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user