From 32d38bc0055a0894c3f9a006dc2d7c4c4ee58076 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 11 Dec 2022 07:02:56 -0800 Subject: [PATCH] fix conditional in until loop work towards issue #48 --- wait-for-synapse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wait-for-synapse.sh b/wait-for-synapse.sh index afb3a79..1c07041 100755 --- a/wait-for-synapse.sh +++ b/wait-for-synapse.sh @@ -17,7 +17,7 @@ host="$1" # This is done for `exec "$@"` below to work correctly shift -until [ "200" == $(curl -s -o /dev/null --head -w "%{http_code}" https://${host}/_matrix/client/versions) ]; do +until [ "200" -eq $(curl -s -o /dev/null --head -w "%{http_code}" https://${host}/_matrix/client/versions) ]; do >&2 echo "synapse is unavailable - sleeping" sleep 3 done