From: Bastian Dehn Date: Sat, 5 Jul 2025 11:40:31 +0000 (+0200) Subject: ignore zbarimg error X-Git-Tag: v1.0.7^2~3 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=f4c98acd866fe45e985528f0f96373ffd86a7b6b;p=scantopdf.git ignore zbarimg error --- diff --git a/scanbasic.bats b/scanbasic.bats index 10873c0..6ffb3f0 100755 --- a/scanbasic.bats +++ b/scanbasic.bats @@ -236,8 +236,8 @@ teardown() { run detectsplit "testfile.pdf" - assert_failure - assert_line --index 0 "❌ ERROR: could not read cut page" + assert_success + assert_line --index 0 "false" } @test "should success and false detectsplit zbarimg nothing find" { diff --git a/scanbasic.sh b/scanbasic.sh index f0c640f..f0da35b 100644 --- a/scanbasic.sh +++ b/scanbasic.sh @@ -142,9 +142,7 @@ detectsplit() || errlog "missing pdf" \ || return $? - trenn=$(zbarimg --raw --quiet $pdf) \ - || errlog "could not read cut page" \ - || return $? + trenn=$(zbarimg --raw --quiet $pdf) [ "$trenn" == "Trennblatt" ] \ && echo "true" \