From e037958aa6a148131d90b77bbde117d078d292ff Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 16 Aug 2002 14:17:46 +0000 Subject: Cleanup exit a bit, from Ronald Wahl --- extra/scripts/get-needed-libgcc-objects.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extra/scripts') diff --git a/extra/scripts/get-needed-libgcc-objects.sh b/extra/scripts/get-needed-libgcc-objects.sh index 6c1fe894e..5d81154b2 100755 --- a/extra/scripts/get-needed-libgcc-objects.sh +++ b/extra/scripts/get-needed-libgcc-objects.sh @@ -31,7 +31,9 @@ if $NM --undefined-only libc.ldr | grep -v "^main$" | grep -v "^_GLOBAL_OFFSET_T EXIT_WITH_ERROR=1 fi done - exit $EXIT_WITH_ERROR + if [ $EXIT_WITH_ERROR != 0 ]; then + exit $EXIT_WITH_ERROR + fi else echo No missing symbols found. exit 0 -- cgit v1.2.3