From 4d88e64774b88002d1535661ffd196b7910e4ad2 Mon Sep 17 00:00:00 2001 From: Jim Barlow Date: Mon, 9 Feb 2015 15:02:49 -0800 Subject: [PATCH] Standardize tmpfile prefix --- OCRmyPDF.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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