From c189a76db3140e8db92e03c530dbcb5d83a9a645 Mon Sep 17 00:00:00 2001
From: Gerardo Tauriello <gerardo.tauriello@unibas.ch>
Date: Mon, 2 Jul 2018 15:14:54 +0200
Subject: [PATCH] Fix return code when executing actions.

---
 scripts/ost.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/ost.in b/scripts/ost.in
index 6026d7f62..a20bef97b 100755
--- a/scripts/ost.in
+++ b/scripts/ost.in
@@ -48,6 +48,7 @@ if test -e "${OST_SCRIPT}" ; then
     done
     IFS="#"
     $pyexec -c "execfile('$DNG_ROOT/@LIBDIR@/python@PYTHON_VERSION@/site-packages/ost/ost_startup.py')" "${OST_SCRIPT}" $opts
+    RC=$?
 else
     opts=""
     for argument in "$@";do
@@ -60,6 +61,6 @@ else
     IFS="#"
     $pyexec $interactive -c "execfile('$DNG_ROOT/@LIBDIR@/python@PYTHON_VERSION@/site-packages/ost/ost_startup.py')" $opts
     RC=$?
-    exit $RC
 fi
 IFS=$OLDIFS
+exit $RC
-- 
GitLab