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