From c4d9bc622ce755094b08f6f52bb2bd7afe6e85c4 Mon Sep 17 00:00:00 2001 From: Be-Mann <25839760+Be-Mann@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:31:10 +0200 Subject: [PATCH] Syntax fix --- cmd/elastic.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/elastic.sh b/cmd/elastic.sh index 4f092e0..c20de84 100644 --- a/cmd/elastic.sh +++ b/cmd/elastic.sh @@ -39,10 +39,10 @@ function elastic_wait(){ i=1 while [[ "$i" -le "$retry_count" ]]; do - if [[ $(elastic_status") -eq 200 ]]; then + if [[ $(elastic_status) -eq 200 ]]; then echo "Elasticsearch up on port ${ELASTIC_PORT:-9200}!" exit 0 - elif [[ $(elastic_status") -eq 408 ]]; then + elif [[ $(elastic_status) -eq 408 ]]; then # 408 indicates the server is up but has not reached yellow status yet printf ":" else