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 ) &