From: Robin Dunn Date: Wed, 12 May 2004 00:12:36 +0000 (+0000) Subject: Check exit code or commands and exit with that code X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0b9c95225ed6748ce1f24707f2a903245826187a?ds=inline Check exit code or commands and exit with that code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/b b/wxPython/b index 5c97518e56..699d41eef3 100755 --- a/wxPython/b +++ b/wxPython/b @@ -126,10 +126,12 @@ fi echo $CMD eval $CMD +RC=$? - -if [ "$OTHERCMD" != "" ]; then +if [ "$RC" = "0" -a "$OTHERCMD" != "" ]; then echo $OTHERCMD $OTHERCMD + RC=$? fi +exit $RC