Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

Commit 10b961c

Browse files
committed
Fix readme pointing at wrong travis ci; fix passing wrong arguments to wait_for
1 parent 7a72de1 commit 10b961c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
When using this tool, you only need to pick the `wait-for` file as part of your project.
66

7-
[![Build Status](https://travis-ci.org/Okeanos/wait-for.svg?branch=master)](https://travis-ci.org/Okeanos/wait-for)
7+
[![Build Status](https://travis-ci.com/Okeanos/wait-for.svg?branch=master)](https://travis-ci.com/Okeanos/wait-for)
88

99
## Usage
1010

wait-for

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ wait_for() {
5656
local result
5757
for _ in $(seq $TIMEOUT) ; do
5858
# use a 1-second timeout, but still sleep 0.1 seconds after just to be safe
59-
test_connection "$1" "$2"
59+
test_connection "$HOST" "$PORT"
6060
result=$?
6161
if [ $result -eq 0 ] ; then break ; fi
6262
sleep 1
@@ -122,7 +122,7 @@ for SERVICE in ${SERVICES} ; do
122122
usage 2
123123
fi
124124

125-
wait_for "$HOST" "$PORT"
125+
wait_for "$@"
126126
done
127127

128128
if [ $# -gt 0 ] ; then

0 commit comments

Comments
 (0)