]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Return status of execution in batch mode.
authorvtn <vtn@opencascade.com>
Fri, 19 Jun 2015 16:53:18 +0000 (19:53 +0300)
committervtn <vtn@opencascade.com>
Fri, 19 Jun 2015 16:53:18 +0000 (19:53 +0300)
bin/runLightSalome.csh
bin/runLightSalome.sh

index 3c80098075f3c1a0cf91eea3e27bae6a86d2d315..bbca5b19ec029789d9430d84191a0d94e04f551a 100755 (executable)
@@ -148,5 +148,6 @@ if ( ! $?SALOME_BATCH_MODE ) then
        SUITApp LightApp -style salome $* &
 else 
        SUITApp LightApp -style salome $*
+       exit $?
 endif
 
index 9fa36f2492417faab431d5bfdf7af428be93855c..658f8f44739892144d67e6852fb345bbc15aa992 100755 (executable)
@@ -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