From 82176e8c295445a537a0a60fc7f50c21229af400 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 1 Sep 2023 14:04:52 +0200 Subject: [PATCH] imvirt/vmware: don't allow output of grep on stdout MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- autoconfig.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4