Skip to content

Commit

Permalink
added check for existance of OCR pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMundhenk committed Sep 23, 2024
1 parent 76ca8b0 commit e4d6562
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion script/scanRear.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ fi
"${output_pdf_file}"

if [ "${REMOVE_ORIGINAL_AFTER_OCR}" = true ]; then
rm ${output_pdf_file}
if [ -f "/scans/${date}-ocr.pdf" ]; then
rm ${output_pdf_file}
fi
fi
) &
fi
Expand Down
4 changes: 3 additions & 1 deletion script/scantofile-0.2.4-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@
"${output_pdf_file}"

if [ "${REMOVE_ORIGINAL_AFTER_OCR}" = true ]; then
rm ${output_pdf_file}
if [ -f "/scans/${date}-ocr.pdf" ]; then
rm ${output_pdf_file}
fi
fi
) &
fi
Expand Down

0 comments on commit e4d6562

Please sign in to comment.