From f4c98acd866fe45e985528f0f96373ffd86a7b6b Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 5 Jul 2025 13:40:31 +0200 Subject: [PATCH] ignore zbarimg error --- scanbasic.bats | 4 ++-- scanbasic.sh | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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" \ -- 2.47.3