From e4ad55d4dd35ac2b078b3ccd696733e7ae2baab4 Mon Sep 17 00:00:00 2001 From: Bryan Sullivan Date: Wed, 8 Nov 2017 11:48:55 -0800 Subject: Fix compare logic; improve demo start/stop logic JIRA: MODELS-2 Change-Id: I96e3e5fdfffbb01ca474871242993cc52f49d9ef Signed-off-by: Bryan Sullivan --- tools/rancher/rancher-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/rancher') diff --git a/tools/rancher/rancher-cluster.sh b/tools/rancher/rancher-cluster.sh index 129042f..555b9bd 100644 --- a/tools/rancher/rancher-cluster.sh +++ b/tools/rancher/rancher-cluster.sh @@ -227,7 +227,7 @@ function wait_till_healthy() { id=$(rancher ps | grep " $service " | awk "{print \$1}") health=$(rancher inspect $id | jq -r ".healthState") state=$(rancher inspect $id | jq -r ".state") - while [[ $tries > 0 && "$health" != "healthy" ]]; do + while [[ $tries -gt 0 && "$health" != "healthy" ]]; do health=$(rancher inspect $id | jq -r ".healthState") echo $service is $health sleep 10 -- cgit