Merge pull request 'Make sure flag is followed by end of line or space.' (#349) from mark/cdist:machine_type into master

Reviewed-on: ungleich-public/cdist#349
This commit is contained in:
nico14571 2023-02-03 21:53:12 +00:00
commit 513a8ae177

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