From: Bastian Dehn Date: Sat, 18 Oct 2025 18:35:17 +0000 (+0200) Subject: fix scanned pdf with process id X-Git-Tag: v1.1.2^2~2^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=562d9ce58795f7abe0cb1c7e52200c569d0772d0;p=scantopdf.git fix scanned pdf with process id --- 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" \