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:
Dan Church 2023-03-27 11:32:18 -05:00
parent 4dd8e17f0b
commit 8dcfacd5d7
Signed by: h3xx
GPG Key ID: EA2BF379CD2CDBD0
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ ERRORS=0
FREED_TOTAL=0
for FILE in "${FILES[@]}"; do
setup_tempdir
TEMP=$(mktemp -p "$TEMP_DIR" -t 'file.XXXXXX')
TEMP=$(mktemp -p "$TEMP_DIR" 'file.XXXXXX')
rm -f -- "$TEMP"
BEGIN_FILESIZE=$(file_size "$FILE")