Skip to content

Commit

Permalink
Refactoring; fix incorrect bash variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Mar 21, 2020
1 parent 3187bbb commit 3fbb90a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sh/containers_up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ wait_briefly_until_ready()
{
local -r port="${1}"
local -r name="${2}"
local -r container_name="test-${name}"
local -r max_tries=40
printf "Waiting until ${name} is ready"
for _ in $(seq ${max_tries}); do
if curl_ready ${port}; then
printf '.OK\n'
printf '.OK\n\n'
docker logs ${name}
return
else
printf .
Expand All @@ -30,7 +30,7 @@ wait_briefly_until_ready()
else
printf "$(ready_filename) does not exist?!\n"
fi
docker logs ${container_name}
docker logs ${name}
exit 42
}

Expand Down

0 comments on commit 3fbb90a

Please sign in to comment.