1.1 --- a/scripts/crosstool-NG.sh.in Sun May 06 15:11:24 2012 +0200
1.2 +++ b/scripts/crosstool-NG.sh.in Tue May 08 18:31:10 2012 +0200
1.3 @@ -596,6 +596,10 @@
1.4 fi
1.5 if [ ${do_it} -eq 1 ]; then
1.6 ( do_${step} )
1.7 + # POSIX 1003.1-2008 does not say if "set -e" should catch a
1.8 + # sub-shell ending with !0. bash-3 does not, while bash-4 does,
1.9 + # so the following line is for bash-3; bash-4 would choke above.
1.10 + [ $? -ne 0 ]
1.11 if [ "${CT_STOP}" = "${step}" ]; then
1.12 do_stop=1
1.13 fi