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:
@@ -126,10 +126,12 @@ fi
|
|||||||
|
|
||||||
echo $CMD
|
echo $CMD
|
||||||
eval $CMD
|
eval $CMD
|
||||||
|
RC=$?
|
||||||
|
|
||||||
|
if [ "$RC" = "0" -a "$OTHERCMD" != "" ]; then
|
||||||
if [ "$OTHERCMD" != "" ]; then
|
|
||||||
echo $OTHERCMD
|
echo $OTHERCMD
|
||||||
$OTHERCMD
|
$OTHERCMD
|
||||||
|
RC=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit $RC
|
||||||
|
Reference in New Issue
Block a user