From 52a5e5f4ef05d893452e72c77d881297a2f73c43 Mon Sep 17 00:00:00 2001 From: Alex Genovese Date: Thu, 2 May 2024 12:23:54 +0200 Subject: [PATCH] fix for qemu-img error on new installs (#1134) make sure a disk exists before trying to check it --- quickemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 9a55fb9..1961b0c 100755 --- a/quickemu +++ b/quickemu @@ -1831,7 +1831,7 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then fi # Set the default disk_format if not provided by user - if [ -z "${disk_format}" ]; then + if [ -z "${disk_format}" ] && [ -e "${disk_img}" ]; then disk_format=$(${QEMU_IMG} info "${disk_img}" | grep 'file format' | cut -d ':' -f 2 | tr -cd '[:graph:]') fi