From cc5affe456da23667da37fd03e62cee44718fb21 Mon Sep 17 00:00:00 2001
From: Nils Erik Krumnack <nils.erik.krumnack@cern.ch>
Date: Wed, 25 Jan 2017 13:33:07 +0100
Subject: [PATCH] fixed a bug in runjob.sh that caused failures not to be
 reported (EventLoopGrid-00-00-52)

	* fixed a bug in runjob.sh that caused failures not to be reported
	* tagging as EventLoopGrid-00-00-52


Former-commit-id: e8c9d2f61d713ed7349833cf5698468c98c3446d
---
 PhysicsAnalysis/D3PDTools/EventLoopGrid/data/runjob.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PhysicsAnalysis/D3PDTools/EventLoopGrid/data/runjob.sh b/PhysicsAnalysis/D3PDTools/EventLoopGrid/data/runjob.sh
index 288d790e684..a3aa3da9fda 100755
--- a/PhysicsAnalysis/D3PDTools/EventLoopGrid/data/runjob.sh
+++ b/PhysicsAnalysis/D3PDTools/EventLoopGrid/data/runjob.sh
@@ -23,9 +23,9 @@ echo Executing root -l -b -q $ROOTCOREDIR/scripts/load_packages.C $MACRO\(\"$1\"
 date
 
 root -l -b -q $ROOTCOREDIR/scripts/load_packages.C $MACRO\(\"$1\"\)
+exitcode=$?
 
 echo Finished executing root
 date
 
-exit $?
-
+exit $exitcode
-- 
GitLab