From e31d10aa129b8ee91bbdd59c73f8cf831eeabfd4 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 23 Mar 2010 00:34:20 +0100 Subject: [PATCH] regress: fix run_multiple to return real exit code --- regress/run_multiple | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5