Merge pull request #740 from silasdb/master

Use portable -p instead of --tmpdir for mktemp
This commit is contained in:
Darko Poljak 2019-03-26 19:00:06 +01:00 committed by GitHub
commit 996bbd084f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ fetch_file() {
fetch_and_prepare_file() { fetch_and_prepare_file() {
# shellcheck disable=SC2016 # 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 # shellcheck disable=SC2016
printf 'cd "$tmpdir"\n' printf 'cd "$tmpdir"\n'
# shellcheck disable=SC2059 # shellcheck disable=SC2059