From af03f48317857cd19428dac251a5714a91cee749 Mon Sep 17 00:00:00 2001 From: Selamanse Date: Mon, 13 Nov 2017 15:20:41 +0100 Subject: [PATCH] Fixes the success check --- scripts/_common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4fbc79a..a4669f9 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,9 @@ ROCKETCHAT_SHASUM=ed53712b37571b959b5c8c8947d6335c21fced316f2b3174bfe027fa25700c NODE_VERSION=4.7.1 checkcmd() { - curl -m 1 -s localhost:$port$path/api/v1/info | grep -e \"success.*true\" >/dev/null 2>&1 + curl -m 1 -s localhost:$port$path/api/v1/info | \ + python -c "import sys, json; print json.load(sys.stdin)['success']" | \ + grep "True" >/dev/null 2>&1 } waitforservice() {