mirror of
https://codeberg.org/h3xx/optipdf
synced 2024-08-15 00:03:23 +00:00
Update 'mktemp' invocation
Turns out using "-t TEMPLATE" instead of "TEMPLATE" is causing TMPDIR to override the setting from `-p`, which is the opposite of what the man page says it does.
This commit is contained in:
parent
4dd8e17f0b
commit
8dcfacd5d7
1 changed files with 1 additions and 1 deletions
2
optipdf
2
optipdf
|
@ -257,7 +257,7 @@ ERRORS=0
|
||||||
FREED_TOTAL=0
|
FREED_TOTAL=0
|
||||||
for FILE in "${FILES[@]}"; do
|
for FILE in "${FILES[@]}"; do
|
||||||
setup_tempdir
|
setup_tempdir
|
||||||
TEMP=$(mktemp -p "$TEMP_DIR" -t 'file.XXXXXX')
|
TEMP=$(mktemp -p "$TEMP_DIR" 'file.XXXXXX')
|
||||||
rm -f -- "$TEMP"
|
rm -f -- "$TEMP"
|
||||||
BEGIN_FILESIZE=$(file_size "$FILE")
|
BEGIN_FILESIZE=$(file_size "$FILE")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue