From 91bb9c9ab9f01adae0a27a980d841302def6a030 Mon Sep 17 00:00:00 2001 From: Sagi Sarussi Date: Fri, 7 May 2021 17:24:57 +0300 Subject: [PATCH] Add -q to the grep (#1274) Returns the status instead of the grepped pattern --- Base/check-grid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Base/check-grid.sh b/Base/check-grid.sh index 6a2f69fd1..4bb8a0085 100755 --- a/Base/check-grid.sh +++ b/Base/check-grid.sh @@ -27,4 +27,4 @@ do esac done -curl -sSL http://${HOST}:${PORT}/wd/hub/status | jq -r '.value.ready' | grep "true" || exit 1 +curl -sSL http://${HOST}:${PORT}/wd/hub/status | jq -r '.value.ready' | grep -q "true" || exit 1