Skip to content

Commit 56ea1e9

Browse files
authored
Merge pull request #25 from x-jokay/fix-expected
Allow checked to be greater than expected
2 parents d23c3ca + cbb252f commit 56ea1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ check_services () {
3434
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)
3535

3636
state="0"
37-
if [ $check = $expected ]; then
37+
if [ $check -ge $expected ]; then
3838
state="1"
3939
fi
4040

0 commit comments

Comments
 (0)