diff --git a/pdf-jammer.sh b/pdf-jammer.sh index d1189eb..c06a216 100755 --- a/pdf-jammer.sh +++ b/pdf-jammer.sh @@ -26,8 +26,8 @@ rows="$2" columns="$3" margin="${4:-0}" # Set margin if provided, else default to 0 -intermediate_pdf=$(mktemp --suffix=.pdf) -cropped_output_pdf=$(mktemp --suffix=.pdf) +intermediate_pdf="$(mktemp).pdf" +cropped_output_pdf="$(mktemp).pdf" # Cleanup temporary files on exit trap 'rm -f "$intermediate_pdf" "$cropped_output_pdf"' EXIT