From 562d9ce58795f7abe0cb1c7e52200c569d0772d0 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 18 Oct 2025 20:35:17 +0200 Subject: [PATCH] fix scanned pdf with process id --- src/scanbasic.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scanbasic.sh b/src/scanbasic.sh index b0dd06e..12380fc 100644 --- a/src/scanbasic.sh +++ b/src/scanbasic.sh @@ -93,11 +93,11 @@ createonepdf() || return $? done - pdftk scanned*.pdf output $output \ + pdftk scanned-$$-*.pdf output $output \ || errlog "could not convert into single $output" \ || return $? - rm scanned*.pdf \ + rm scanned-$$-*.pdf \ || errlog "could not remove scanned pdfs" \ || return $? @@ -124,7 +124,7 @@ createpdf() local i= for i in $(seq $start $end); do countno=$(printf "%03d" $i) - pdfs=$(echo $pdfs "scanned$countno.pdf") + pdfs=$(echo $pdfs "scanned-$$-$countno.pdf") done pdftk $pdfs output "$basename$(printf "%03d" $start).pdf" \ -- 2.47.3