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-7.0.0~1268 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=741f53adc24fa26eb6726964b28b412ad5bda107;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