From: Eric Bollengier Date: Mon, 22 Mar 2010 23:34:20 +0000 (+0100) Subject: regress: fix run_multiple to return real exit code X-Git-Tag: Release-5.2.1~1574 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca2a75fe48e39da633aa2186998950db247cfa2a;p=bacula%2Fbacula regress: fix run_multiple to return real exit code --- diff --git a/regress/run_multiple b/regress/run_multiple index 4a18e9aa0a..bff47b0612 100755 --- a/regress/run_multiple +++ b/regress/run_multiple @@ -3,8 +3,9 @@ export REGRESS_DEBUG=1 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ; do echo "$i. Doing $1 at `date +%R:%S`" nice $1 >1 - if [ $? -ne 0 ] ; then - echo "Exit $?" + r=$? + if [ $r -ne 0 ] ; then + echo "Exit $r" exit 1 fi done