summaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r--scripts/crosstool-NG.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index d794743..818723f 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -596,6 +596,10 @@ if [ "${CT_ONLY_DOWNLOAD}" != "y" -a "${CT_ONLY_EXTRACT}" != "y" ]; then
fi
if [ ${do_it} -eq 1 ]; then
( do_${step} )
+ # POSIX 1003.1-2008 does not say if "set -e" should catch a
+ # sub-shell ending with !0. bash-3 does not, while bash-4 does,
+ # so the following line is for bash-3; bash-4 would choke above.
+ [ $? -ne 0 ]
if [ "${CT_STOP}" = "${step}" ]; then
do_stop=1
fi