Be compatible with OSX

This commit is contained in:
Love 2024-08-19 14:45:54 +02:00
parent ef1eb3541c
commit 1d1c711a7d

View File

@ -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