fix conditional in until loop

work towards issue #48
This commit is contained in:
Morgan McMillian 2022-12-11 07:02:56 -08:00
parent 45f621f9af
commit 32d38bc005

View file

@ -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