From 47ecb197dadd7cfe3be8ba11cb4816ba5ccaa680 Mon Sep 17 00:00:00 2001 From: Abhishek Varshney Date: Thu, 30 Apr 2020 06:48:34 +0530 Subject: [PATCH] fix(macos) leading whitespaces in wc command on osx (#264) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7772afea18e..2372f811012 100644 --- a/Makefile +++ b/Makefile @@ -284,7 +284,7 @@ endif test-kong: kong-test-container docker-compose up -d - bash -c 'while [[ "$$(docker-compose ps | grep healthy | wc -l)" != "3" ]]; do docker-compose ps && sleep 5; done' + bash -c 'healthy=$$(docker-compose ps | grep healthy | wc -l); while [[ "$$(( $$healthy ))" != "3" ]]; do docker-compose ps && sleep 5; done' docker exec kong /kong/.ci/run_tests.sh && make update-cache-images release-kong: test