As a side effect, the template temp file is no longer left behind, as
a unique filename is used for it on each run.
Use the same method of figuring out the temp dir as in
check_status_file().
Signed-off-by: Ville Skyttä <ville.skytta@upcloud.com>
BLK_SIZE=
BLOCK_SIZE=4k
SEQ=-1
BLK_SIZE=
BLOCK_SIZE=4k
SEQ=-1
-TEMPLATE=/tmp/template.fio
+TEMPLATE=$(mktemp "${TMPDIR:-${TEMP:-/tmp}}/template.fio.XXXXXX") || exit $?
+trap 'rm -f "$TEMPLATE"' EXIT
OUTFILE=
DISKS=
PRINTABLE_DISKS=
OUTFILE=
DISKS=
PRINTABLE_DISKS=