fix(scripts): get correct major version
This commit is contained in:
parent
493e373bcd
commit
cec2f15896
1 changed files with 1 additions and 1 deletions
2
os/scripts/qemu-ver-check.sh
Normal file → Executable file
2
os/scripts/qemu-ver-check.sh
Normal file → Executable file
|
@ -13,7 +13,7 @@ then
|
|||
exit 1
|
||||
else
|
||||
QEMU_VERSION=$($1 --version|head -n 1|awk '{print $4}')
|
||||
MAJOR_VERSION=$(echo $QEMU_VERSION|cut -c1-1)
|
||||
MAJOR_VERSION=$(echo $QEMU_VERSION | awk -F '.' '{print $1}')
|
||||
if [ $MAJOR_VERSION -lt $MINIMUM_MAJOR_VERSION ]
|
||||
then
|
||||
echo "${RED}Error: Required major version of QEMU is ${MINIMUM_MAJOR_VERSION}, " \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue