Don't use suffix with mktemp, close

This commit is contained in:
Liam 2022-02-02 11:12:06 +00:00 committed by GitHub
parent 1f87e043bf
commit 097a5cdf0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,7 +90,7 @@ cleanup() {
mkdir -p -- "$outdir"
# Setup temporarily file with 600 perms
tempfile="$(umask u=rwx,g=,o= && mktemp --suffix=_fa-dl)"
tempfile="$(umask u=rwx,g=,o= && mktemp)"
# Call cleanup function on exit
trap cleanup EXIT