From c5a2e4e966c0996227dd0e897005cb42162404a6 Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Sun, 22 Sep 2024 21:01:37 +0200 Subject: [PATCH] Update scantofile-0.2.4-1.sh added removal on non-OCR file --- script/scantofile-0.2.4-1.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/scantofile-0.2.4-1.sh b/script/scantofile-0.2.4-1.sh index 247287d..1bacbba 100755 --- a/script/scantofile-0.2.4-1.sh +++ b/script/scantofile-0.2.4-1.sh @@ -83,6 +83,10 @@ "${FTP_HOST}" \ "${FTP_PATH}" \ "${output_pdf_file}" + + if [ -n "${REMOVE_ORIGINAL_AFTER_OCR}" ]; then + rm ${output_pdf_file} + fi ) & fi ) &