diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-16 14:17:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-16 14:17:46 +0000 |
commit | e037958aa6a148131d90b77bbde117d078d292ff (patch) | |
tree | 8a860de9a7afe03e976e0aa2b69e30eeb7611377 | |
parent | f4cb0372c88ba6d2f53b729469221ae60069e8dc (diff) |
Cleanup exit a bit, from Ronald Wahl
-rwxr-xr-x | extra/scripts/get-needed-libgcc-objects.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |