From 47edc6b6a4741c827422e4542be26a76e1843c2a Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Mon, 8 Nov 2010 09:52:59 +0100
Subject: [PATCH] propagate return code of python

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

diff --git a/scripts/ost.in b/scripts/ost.in
index 16dc67387..cacb82d60 100755
--- a/scripts/ost.in
+++ b/scripts/ost.in
@@ -76,7 +76,9 @@ else
 fi
 # finally pass control to python instance
 IFS="#"
-exec $pyexec $interactive "$DNG_ROOT/@LIBDIR@/openstructure/init_cl.py" $opts
+$pyexec $interactive "$DNG_ROOT/@LIBDIR@/openstructure/init_cl.py" $opts
+RC=$?
 IFS=$' \t\n'
+exit $RC
 
 
-- 
GitLab