From: Bastian Dehn Date: Wed, 3 Dec 2025 16:34:08 +0000 (+0100) Subject: fix file name pattern msg X-Git-Tag: v1.1.3^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=8e3160935c4b27b4a3e301ee2b8547ab0f6f7f05;p=scantopdf.git fix file name pattern msg --- diff --git a/Makefile b/Makefile index bf432c8..b597edc 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ test: build: build/$(PACKAGENAME)/usr/local/bin/scantopdf \ build/$(PACKAGENAME)/usr/local/bin/scantopdfgray \ - build/$(PACKAGENAME)/usr/local/bin/scantopdfbw \ + build/$(PACKAGENAME)/usr/local/bin/scantopdfbw build/$(PACKAGENAME)/usr/local/bin: mkdir -p build/$(PACKAGENAME)/usr/local/bin diff --git a/src/scanbasic.sh b/src/scanbasic.sh index f72daef..cc8e665 100644 --- a/src/scanbasic.sh +++ b/src/scanbasic.sh @@ -272,7 +272,7 @@ scantopdf() { || return $? [ -z "$keywords" ] \ || [[ "$output" =~ [0-9]{4}\-[0-9]{2}\-[0-9]{2}_.*\.pdf ]] \ - || errlog "file name mismatch pattern" \ + || errlog "file name mismatch pattern yyyy-MM-dd_.pdf" \ || return $? scanimage --source=DocumentFeeder \ diff --git a/tests/scanbasic.bats b/tests/scanbasic.bats index 41e383e..6eb67cd 100755 --- a/tests/scanbasic.bats +++ b/tests/scanbasic.bats @@ -333,5 +333,5 @@ setup() { run scantopdf "Color" "1" "wrong_name.pdf" "keywords" assert_failure - assert_line --index 0 "❌ ERROR: file name mismatch pattern" + assert_line --index 0 "❌ ERROR: file name mismatch pattern yyyy-MM-dd_.pdf" }