build_library/qemu_template.sh: flip argument order to mktemp

On Mac the definition of mktemp is:

  mktemp [-d] -t TEMPLATE

so call it like that which would be compatible to both Linuxes and Macs.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2022-02-11 16:42:49 +01:00
parent 4c26b9a342
commit 06b2ad30d1

View File

@ -118,7 +118,7 @@ cleanup() {
}
if [ -z "${CONFIG_IMAGE}" ]; then
CONFIG_DRIVE=$(mktemp -t -d flatcar-configdrive.XXXXXXXXXX)
CONFIG_DRIVE=$(mktemp -d -t flatcar-configdrive.XXXXXXXXXX)
ret=$?
if [ "$ret" -ne 0 ] || [ ! -d "$CONFIG_DRIVE" ]; then
echo "$0: mktemp -d failed!" >&2