We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wget
1 parent b29602e commit b15c461Copy full SHA for b15c461
wait-for
@@ -68,11 +68,11 @@ wait_for() {
68
69
while :; do
70
case "$PROTOCOL" in
71
- tcp)
+ tcp)
72
nc -w 1 -z "$HOST" "$PORT" > /dev/null 2>&1
73
;;
74
http)
75
- wget --timeout=1 -q "$HOST" -O /dev/null > /dev/null 2>&1
+ wget --timeout=1 --tries=1 -q "$HOST" -O /dev/null > /dev/null 2>&1
76
77
*)
78
echoerr "Unknown protocol '$PROTOCOL'"
@@ -81,7 +81,7 @@ wait_for() {
81
esac
82
83
result=$?
84
-
+
85
if [ $result -eq 0 ] ; then
86
if [ $# -gt 7 ] ; then
87
for result in $(seq $(($# - 7))); do
0 commit comments