Commit eea58314 authored by PAPADOPOULO Theodore's avatar PAPADOPOULO Theodore

Return the application return code in all cases (instead of just background mode).

parent 709bbe84
......@@ -22,9 +22,9 @@ ret_code=0
if [ $ov_run_bg == 0 ]; then
eval "$LOCAL_BIN_PATH/$CALLCMD" @OV_CMD_ARGS@ $*
ret_code=$?
else
"$LOCAL_BIN_PATH/$CALLCMD" @OV_CMD_ARGS@ $* &
fi
ret_code=$?
exit $ret_code
......@@ -56,10 +56,10 @@ ret_code=0
if [ $ov_run_bg == 0 ]; then
eval $ov_debugger "$LOCAL_BIN_PATH/@OV_CMD_EXECUTABLE@" @OV_CMD_ARGS@ "$@"
ret_code=$?
else
$ov_debugger "$LOCAL_BIN_PATH/@OV_CMD_EXECUTABLE@" @OV_CMD_ARGS@ "$@" &
fi
ret_code=$?
exit $ret_code
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment