diff --git a/libvirt/functions.sh b/libvirt/functions.sh index b367615..479cb75 100644 --- a/libvirt/functions.sh +++ b/libvirt/functions.sh @@ -68,7 +68,7 @@ delete_disk() { return 1 fi - file -b "$fpath" | grep -q "^QEMU QCOW Image (v3)," + file -b "$fpath" | grep -q "^QEMU \(QCOW\|QCOW2\) Image (v3)," if [ $? -ne 0 ]; then echo "file to delete is not QEMU QCOW Image (v3): $fpath" >&2 return 1