Be compatible with OSX
This commit is contained in:
parent
ef1eb3541c
commit
1d1c711a7d
@ -26,8 +26,8 @@ rows="$2"
|
|||||||
columns="$3"
|
columns="$3"
|
||||||
margin="${4:-0}" # Set margin if provided, else default to 0
|
margin="${4:-0}" # Set margin if provided, else default to 0
|
||||||
|
|
||||||
intermediate_pdf=$(mktemp --suffix=.pdf)
|
intermediate_pdf="$(mktemp).pdf"
|
||||||
cropped_output_pdf=$(mktemp --suffix=.pdf)
|
cropped_output_pdf="$(mktemp).pdf"
|
||||||
|
|
||||||
# Cleanup temporary files on exit
|
# Cleanup temporary files on exit
|
||||||
trap 'rm -f "$intermediate_pdf" "$cropped_output_pdf"' EXIT
|
trap 'rm -f "$intermediate_pdf" "$cropped_output_pdf"' EXIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user