From 4424fd8d77865134f0ac7955c3d9d0a7153a0102 Mon Sep 17 00:00:00 2001 From: vtn Date: Fri, 19 Jun 2015 19:53:18 +0300 Subject: [PATCH] Return status of execution in batch mode. --- bin/runLightSalome.csh | 1 + bin/runLightSalome.sh | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/runLightSalome.csh b/bin/runLightSalome.csh index 3c8009807..bbca5b19e 100755 --- a/bin/runLightSalome.csh +++ b/bin/runLightSalome.csh @@ -148,5 +148,6 @@ if ( ! $?SALOME_BATCH_MODE ) then SUITApp LightApp -style salome $* & else SUITApp LightApp -style salome $* + exit $? endif diff --git a/bin/runLightSalome.sh b/bin/runLightSalome.sh index 9fa36f249..658f8f447 100755 --- a/bin/runLightSalome.sh +++ b/bin/runLightSalome.sh @@ -142,4 +142,9 @@ fi # start application ### -SUITApp LightApp -style salome $* & +if [ ! -z "${SALOME_BATCH_MODE}" ] ; then + SUITApp LightApp -style salome $* & +else + SUITApp LightApp -style salome $* + exit $? +fi -- 2.39.2