Add a check for minimum support Qemu version
This commit is contained in:
parent
0332b23b31
commit
943612589b
6
quickemu
6
quickemu
@ -569,6 +569,12 @@ if [ ! -e "${QEMU}" ] && [ ! -e "${QEMU_IMG}" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1 | sed 's/\.//g')
|
||||||
|
if [ ${QEMU_VER} -lt 600 ]; then
|
||||||
|
echo "ERROR! Qemu 6.0.0 is newer is required, detected $(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Take command line arguments
|
# Take command line arguments
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
usage
|
usage
|
||||||
|
Loading…
Reference in New Issue
Block a user