# HG changeset patch # User "Yann E. MORIN" # Date 1336512578 -7200 # Node ID 24961ef6af8885ad071cba16adacbf5f7466ef37 # Parent 04092e6b82ca3b06685055a323662ee343fdfe38 scripts: fix catching build failures, the proper way, now Serves me for pushing too fast... :-( Signed-off-by: "Yann E. MORIN" diff -r 04092e6b82ca -r 24961ef6af88 scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Sun May 06 16:42:59 2012 +0200 +++ b/scripts/crosstool-NG.sh.in Tue May 08 23:29:38 2012 +0200 @@ -599,7 +599,7 @@ # 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 ] + [ $? -eq 0 ] if [ "${CT_STOP}" = "${step}" ]; then do_stop=1 fi