From 780735cce6eaed1e11c38ff2b6154ff98f2a62ea Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 25 Sep 2021 13:41:37 +0100 Subject: [PATCH] Qemu version check is now major/minor version only --- quickemu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index 85a7460..c4dc963 100755 --- a/quickemu +++ b/quickemu @@ -598,8 +598,8 @@ if [ ! -e "${QEMU}" ] && [ ! -e "${QEMU_IMG}" ]; then exit 1 fi -QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1 | sed 's/\.//g') -if [ "${QEMU_VER}" -lt 600 ]; then +QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1 | sed 's/\.//g' | cut -c1-2) +if [ "${QEMU_VER}" -lt 60 ]; then echo "ERROR! Qemu 6.0.0 or newer is required, detected $(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)." exit 1 fi