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

Merged
nico merged 1 commit from mark/cdist:machine_type into master 2023-02-03 21:53:14 +00:00
Showing only changes of commit c85184dcb4 - Show all commits

View file

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