Skip to content

Commit

Permalink
Merge pull request #86 from garethrandall/master
Browse files Browse the repository at this point in the history
Avoid sending a newline character which confuses servers.
  • Loading branch information
douglas-gibbons committed Aug 22, 2020
2 parents 5a33b16 + ef92efb commit 81b1373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wait-for-it.sh
Expand Up @@ -36,7 +36,7 @@ wait_for()
nc -z $WAITFORIT_HOST $WAITFORIT_PORT
WAITFORIT_result=$?
else
(echo > /dev/tcp/$WAITFORIT_HOST/$WAITFORIT_PORT) >/dev/null 2>&1
(echo -n > /dev/tcp/$WAITFORIT_HOST/$WAITFORIT_PORT) >/dev/null 2>&1
WAITFORIT_result=$?
fi
if [[ $WAITFORIT_result -eq 0 ]]; then
Expand Down

0 comments on commit 81b1373

Please sign in to comment.