--tmpdir -> TMPDIR env var

This commit is contained in:
Darko Poljak 2017-09-28 21:47:20 +02:00
parent 3759a37fbd
commit 6d0e1a2e73

View file

@ -61,7 +61,7 @@ fetch_file() {
} }
fetch_and_prepare_file() { fetch_and_prepare_file() {
printf 'tmpdir="$(mktemp -d --tmpdir="/tmp" "%s")"\n' "${__type##*/}.XXXXXXXXXX" printf 'tmpdir="$(TMPDIR="/tmp" mktemp -d "%s")"\n' "${__type##*/}.XXXXXXXXXX"
printf 'cd "$tmpdir"\n' printf 'cd "$tmpdir"\n'
printf "$fetch_command > \"%s\"\n" "$source" "$source_file_name" printf "$fetch_command > \"%s\"\n" "$source" "$source_file_name"
prepare_command="$(cat "$__object/parameter/prepare-command")" prepare_command="$(cat "$__object/parameter/prepare-command")"