Skip to content

Commit

Permalink
enter REMOTEDIR before ocrd-import
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Feb 15, 2024
1 parent 48b22ff commit 2123261
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocrd_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ ocrd_format_workflow() {

# ocrd import from workdir
ocrd_import_workdir() {
echo "echo \$\$ > $REMOTEDIR/ocrd.pid"
echo "if test -f '$REMOTEDIR/mets.xml'; then OV=--overwrite; else OV=; ocrd-import -j 1 -i '$REMOTEDIR'; fi"
echo "cd '$REMOTEDIR'"
echo "echo \$\$ > ocrd.pid"
echo "if test -f mets.xml; then OV=--overwrite; else OV=; ocrd-import -j 1 -i; fi"
}

ocrd_enter_workdir() {
echo "echo \$\$ > $REMOTEDIR/ocrd.pid"
echo "if test -f '$REMOTEDIR/mets.xml'; then OV=--overwrite; else OV=; fi"
echo "cd '$REMOTEDIR'"
echo "echo \$\$ > ocrd.pid"
echo "if test -f mets.xml; then OV=--overwrite; else OV=; fi"
}

ocrd_process_workflow() {
Expand Down

0 comments on commit 2123261

Please sign in to comment.