Skip to content

Commit

Permalink
Merge pull request #25 from x-jokay/fix-expected
Browse files Browse the repository at this point in the history
Allow checked to be greater than expected
  • Loading branch information
pascalberger authored Sep 14, 2019
2 parents d23c3ca + cbb252f commit 56ea1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ check_services () {
check=$(curl -sg --unix-socket /var/run/docker.sock http://$CHK_DOCKER_API_VERSION/tasks?filters={%22service%22:[%22$service%22]} | jq '.[]? | select((.Status.State|index("running")>=0))? | .ID?' | wc -l)

state="0"
if [ $check = $expected ]; then
if [ $check -ge $expected ]; then
state="1"
fi

Expand Down

0 comments on commit 56ea1e9

Please sign in to comment.