From: Eric Bollengier Date: Wed, 8 Dec 2010 10:03:32 +0000 (+0100) Subject: regress: ensure to leave the script when the reload command is ok X-Git-Tag: Release-5.2.1~788 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5c44e91d5f5f2e90516dc1284041396d3babe206;p=bacula%2Fbacula regress: ensure to leave the script when the reload command is ok --- diff --git a/regress/scripts/setup_win32 b/regress/scripts/setup_win32 index 3bf4386f21..7e9e20c05f 100755 --- a/regress/scripts/setup_win32 +++ b/regress/scripts/setup_win32 @@ -25,3 +25,13 @@ wget -qO /dev/null "$URL/start" echo -ne "Reloading regress-win32.pl:\t" wget -qO - "$URL/reload" + +i=0 +while ! wget -qO /dev/null $URL/nop; do + sleep 5 + i=`expr $i + 1` + if [ $i -ge 12 ]; then # print message every minute + i=0 + echo "== `date +%T` Waiting for script to reload" + fi +done