Make sure flag is followed by end of line or space.

This commit is contained in:
Mark Verboom 2022-09-18 08:49:37 +02:00
parent 90488d2e9e
commit c85184dcb4

View file

@ -515,7 +515,7 @@ check_vm_arch_specific() {
&& return 0
fi
if has_cpuinfo \
&& grep -q -i -e '^flags.*:.*\(hypervisor\|vmm\)' /proc/cpuinfo
&& grep -q -i -e '^flags.*:.*\(hypervisor\|vmm\)\( \|$\) /proc/cpuinfo
then
return 0
fi