From c52031fd7bfe0de36df306bddd325052da41649c Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Wed, 17 Feb 2016 08:37:02 -0500
Subject: [PATCH] Allow wrapped script to return its own exit code. - Makes it
 easier to respond to import errors. - Thanks to Johannes Ruscheinski for the
 suggestion.

---
 import-marc.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/import-marc.sh b/import-marc.sh
index 2031abd2ddc..76e390545f8 100755
--- a/import-marc.sh
+++ b/import-marc.sh
@@ -143,6 +143,4 @@ RUN_CMD="$JAVA $INDEX_OPTIONS -Duser.timezone=UTC -Dsolr.core.name=$SOLRCORE $EX
 echo "Now Importing $1 ..."
 # solrmarc writes log messages to stderr, write RUN_CMD to the same place
 echo "`date '+%h %d, %H:%M:%S'` $RUN_CMD" >&2
-exec $RUN_CMD
-
-exit 0
+exec $RUN_CMD
\ No newline at end of file
-- 
GitLab