diff --git a/OCRmyPDF.sh b/OCRmyPDF.sh index b89734c9..4985fff7 100755 --- a/OCRmyPDF.sh +++ b/OCRmyPDF.sh @@ -243,7 +243,7 @@ done # FreeBSD requires '-t prefix' to be used so that $TMPDIR is taken into account # But in Linux '-t template' is handled differently than in FreeBSD # Therefore different calls must be used for Linux and for FreeBSD -prefix="$(date +"%Y%m%d_%H%M").filename.$(basename "$FILE_INPUT_PDF" | sed 's/[.][^.]*$//')" # prefix made of date, time and pdf file name without extension +prefix="com.github.ocrmypdf.$(date +"%Y%m%d_%H%M").$(basename "$FILE_INPUT_PDF" | sed 's/[.][^.]*$//')" # prefix made of date, time and pdf file name without extension TMP_FLD=`mktemp -d 2>/dev/null || mktemp -d -t "${prefix}" 2>/dev/null` # try Linux syntax first, if it fails try FreeBSD/OSX if [ $? -ne 0 ]; then if [ -z "$TMPDIR" ]; then