Skip to content

Commit

Permalink
Enable OUTPUT_DIR to be set from outside
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Nov 30, 2024
1 parent e81249c commit a4a019e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions common-script
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,12 @@ MARC_DIR=${MARC_DIR:-$BASE_INPUT_DIR/$NAME}
SCHEMA=${SCHEMA:-MARC21}

LOG_DIR=${BASE_LOG_DIR}/${NAME}
if [[ "${VERSION:-}" != "" ]]; then
OUTPUT_DIR=${BASE_OUTPUT_DIR}/${NAME}-${VERSION}
else
OUTPUT_DIR=${BASE_OUTPUT_DIR}/${NAME}
if [[ "${OUTPUT_DIR:-}" = "" ]]; then
if [[ "${VERSION:-}" != "" ]]; then
OUTPUT_DIR=${BASE_OUTPUT_DIR}/${NAME}-${VERSION}
else
OUTPUT_DIR=${BASE_OUTPUT_DIR}/${NAME}
fi
fi

# which tasks to run on `all-analyses`
Expand Down

0 comments on commit a4a019e

Please sign in to comment.