Skip to content

Commit

Permalink
Avoid sending a newline character which confuses servers.
Browse files Browse the repository at this point in the history
  • Loading branch information
garethrandall committed Jan 3, 2020
1 parent 54d1f0b commit ef92efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wait-for-it.sh
Original file line number Diff line number Diff line change
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 ef92efb

Please sign in to comment.