fix for qemu-img error on new installs (#1134)
make sure a disk exists before trying to check it
This commit is contained in:
parent
9a09badfe5
commit
52a5e5f4ef
2
quickemu
2
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue