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
This commit is contained in:
Robin Dunn 2004-05-12 00:12:36 +00:00
parent ecd216fc87
commit 0b9c95225e

View File

@ -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