Skip to content
Snippets Groups Projects
Commit 89595c60 authored by Michelle Weidling's avatar Michelle Weidling :blowfish:
Browse files

fix: check if mets.xml has already been processed

parent 03f43d96
No related branches found
No related tags found
1 merge request!1Merge GitHub's state
......@@ -91,10 +91,12 @@ execute_wfs_and_extract_benchmarks() {
# for all data sets…
for WS_DIR in "$WORKSPACE_DIR"/*
do
if [ -d "$WS_DIR" ]; then
INNER_DIR=$(ls "$WS_DIR"/data/)
if [ -d "$WS_DIR" ] && ! grep -q "OCR-D-OCR" "$WS_DIR/data/$INNER_DIR/mets.xml" ; then
echo "Switching to $WS_DIR."
DIR_NAME=$(basename $WS_DIR)
DIR_NAME=$(basename "$WS_DIR")
run "$WS_DIR"/data/*/*ocr.txt.nf "$DIR_NAME" "$WS_DIR"
run "$WS_DIR"/data/*/*eval.txt.nf "$DIR_NAME" "$WS_DIR"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment