Use portable -p instead of --tmpdir for mktemp

-p is equivalent to --tmpdir, but more portable, since it works across
GNU/Linux and *BSDs
This commit is contained in:
Silas 2019-03-25 18:36:55 -03:00
parent 825a47b3d9
commit 28e2b058a4
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ fetch_file() {
fetch_and_prepare_file() {
# shellcheck disable=SC2016
printf 'tmpdir="$(mktemp -d --tmpdir="/tmp" "%s")"\n' "${__type##*/}.XXXXXXXXXX"
printf 'tmpdir="$(mktemp -d -p "/tmp" "%s")"\n' "${__type##*/}.XXXXXXXXXX"
# shellcheck disable=SC2016
printf 'cd "$tmpdir"\n'
# shellcheck disable=SC2059