Skip to content

Commit 81b1373

Browse files
author
Douglas Gibbons
authored
Merge pull request #86 from garethrandall/master
Avoid sending a newline character which confuses servers.
2 parents 5a33b16 + ef92efb commit 81b1373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wait-for-it.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ wait_for()
3636
nc -z $WAITFORIT_HOST $WAITFORIT_PORT
3737
WAITFORIT_result=$?
3838
else
39-
(echo > /dev/tcp/$WAITFORIT_HOST/$WAITFORIT_PORT) >/dev/null 2>&1
39+
(echo -n > /dev/tcp/$WAITFORIT_HOST/$WAITFORIT_PORT) >/dev/null 2>&1
4040
WAITFORIT_result=$?
4141
fi
4242
if [[ $WAITFORIT_result -eq 0 ]]; then

0 commit comments

Comments
 (0)