From 8c9d54fea2be294374cf9c10664e06cd4965dca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 12 Dec 2023 21:12:26 +0100 Subject: [PATCH] Fix install --- scripts/_common.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 017433e..b8d0536 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -85,9 +85,11 @@ install_exension() { } wait_xwiki_started() { - local res + local res='meta http-equiv="refresh" content="1"'$ + local curl='curl --silent --show-error' + while echo "$res" | grep -q 'meta http-equiv="refresh" content="1"'; do - res=($curl "http://localhost:$port$path/bin/view/Main/") + res=$($curl "http://localhost:$port$path/bin/view/Main/") sleep 10 done }