From 06b2ad30d11d01152727d746c5de89758c0dcec0 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Fri, 11 Feb 2022 16:42:49 +0100 Subject: [PATCH] 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 --- build_library/qemu_template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_library/qemu_template.sh b/build_library/qemu_template.sh index 48ef555ad2..62de9c358d 100755 --- a/build_library/qemu_template.sh +++ b/build_library/qemu_template.sh @@ -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