From: Michael Prokop Date: Fri, 1 Sep 2023 12:04:52 +0000 (+0200) Subject: imvirt/vmware: don't allow output of grep on stdout X-Git-Tag: v0.20.6~1 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=82176e8c295445a537a0a60fc7f50c21229af400 imvirt/vmware: don't allow output of grep on stdout To clarify, output of virt-what executed inside a VM on a VMware cluster is `vmware`, and `VMware ESX Server` for imvirt. Thanks: AndrĂ¡s Korn --- diff --git a/autoconfig.functions b/autoconfig.functions index af3a117..4a8b167 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -185,7 +185,7 @@ VIRTUALBOX=false VMWARE=false if virt-what 2>/dev/null | grep -q 'vmware' || \ - imvirt 2>/dev/null | grep -i "vmware" ; then + imvirt 2>/dev/null | grep -iq "vmware" ; then VIRTUAL=true; VMWARE=true; VIRTUAL_ENV='VMware' fi