From 3b4db01ac7d5c51e14ba530f2f3966941f242bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Thu, 19 Jul 2018 22:58:18 +0200 Subject: [PATCH] Alphanet: fix `./alphanet.sh endorser status` --- scripts/alphanet.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/alphanet.sh b/scripts/alphanet.sh index e19bae246..5cacf6288 100755 --- a/scripts/alphanet.sh +++ b/scripts/alphanet.sh @@ -349,9 +349,8 @@ check_endorser() { docker_endorser_containers="$(sed "s/^\(.*\)$/${docker_compose_name}_endorser-\1_1/g" "$active_protocol_versions")" res=$(docker inspect \ --format="{{ .State.Running }}" \ - --type=container $docker_endorser_containers 2>/dev/null \ - || echo false) - [ "$res" = true ] + --type=container $docker_endorser_containers 2>/dev/null | grep false) + [ -z "$res" ] } assert_endorser() { @@ -415,9 +414,8 @@ check_accuser() { docker_accuser_containers="$(sed "s/^\(.*\)$/${docker_compose_name}_accuser-\1_1/g" "$active_protocol_versions")" res=$(docker inspect \ --format="{{ .State.Running }}" \ - --type=container $docker_accuser_containers 2>/dev/null \ - || echo false) - [ "$res" = true ] + --type=container $docker_accuser_containers 2>/dev/null | grep false) + [ -z "$res" ] } assert_accuser() {