summaryrefslogtreecommitdiff
path: root/extra/scripts/get-needed-libgcc-objects.sh
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-16 14:17:46 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-16 14:17:46 +0000
commite037958aa6a148131d90b77bbde117d078d292ff (patch)
tree8a860de9a7afe03e976e0aa2b69e30eeb7611377 /extra/scripts/get-needed-libgcc-objects.sh
parentf4cb0372c88ba6d2f53b729469221ae60069e8dc (diff)
Cleanup exit a bit, from Ronald Wahl
Diffstat (limited to 'extra/scripts/get-needed-libgcc-objects.sh')
-rwxr-xr-xextra/scripts/get-needed-libgcc-objects.sh4
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