From: Bastian Dehn Date: Sat, 5 Jul 2025 11:14:19 +0000 (+0200) Subject: add info for add ocr X-Git-Tag: v1.0.7^2~7 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=9b82cafe2a2c709462c4860f192b0cd23de6ced1;p=scantopdf.git add info for add ocr --- diff --git a/scanbasic.bats b/scanbasic.bats index b2c6dec..d9f6a76 100755 --- a/scanbasic.bats +++ b/scanbasic.bats @@ -135,13 +135,15 @@ teardown() { run addocr "testfile" assert_failure - assert_line --index 0 "❌ ERROR: could not add ocr on testfile" + assert_line --index 0 "ℹ️ INFO: adding ocr on file testfile..." + assert_line --index 1 "❌ ERROR: could not add ocr on testfile" } @test "should success addocr" { run addocr "testfile" assert_success + assert_line --index 0 "ℹ️ INFO: adding ocr on file testfile..." } @test "should failure createonepdf missing output parameter" { diff --git a/scanbasic.sh b/scanbasic.sh index a6f0086..4404163 100644 --- a/scanbasic.sh +++ b/scanbasic.sh @@ -39,7 +39,8 @@ addocr() || errlog "missing input" \ || return $? - ocrmypdf -l deu $input $output 2>&1 \ + echo "ℹ️ INFO: adding ocr on file $input..." + ocrmypdf -l deu $input $output > /dev/null \ || errlog "could not add ocr on $input" \ || return $?