mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
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:
parent
4c26b9a342
commit
06b2ad30d1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user