Skip to content
Snippets Groups Projects
Commit c52031fd authored by Demian Katz's avatar Demian Katz
Browse files

Allow wrapped script to return its own exit code.

- Makes it easier to respond to import errors.
- Thanks to Johannes Ruscheinski for the suggestion.
parent 6ea2aca7
No related merge requests found
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment