]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
fix cut page detect right keyword
authorBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 17:57:35 +0000 (19:57 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 17:59:11 +0000 (19:59 +0200)
src/scanbasic.sh
tests/scanbasic.bats

index 142a3e3f9a797b218a00f40f0fcd83b1690c45d1..ecfa1ad796efd1d3eff3619adaad6ec429f21a97 100644 (file)
@@ -152,7 +152,7 @@ detectsplit()
 
        trenn=$(pdfgrep "CUTPAGE-CUTPAGE-CUTPAGE-CUTPAGE" $pdf)
 
-       [ "$trenn" == "47CUTPAGE11" ] \
+       [ "$trenn" == "CUTPAGE-CUTPAGE-CUTPAGE-CUTPAGE" ] \
                && echo "true" \
                && return 0
 
index 31a668a5258faa5ee371c19e1e404c0a9839bf46..d39c86b195d5dd9ef6b81cc64326e4d3a725a774 100755 (executable)
@@ -209,7 +209,7 @@ setup() {
 
 @test "should success and true detectsplit pdfgrep find 47CUTPAGE11" {
        pdfgrep() {
-               echo "47CUTPAGE11"
+               echo "CUTPAGE-CUTPAGE-CUTPAGE-CUTPAGE"
        }
 
        run detectsplit "testfile.pdf"