Skip to content

Commit

Permalink
imvirt/vmware: don't allow output of grep on stdout
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mika committed Sep 1, 2023
1 parent b39d89f commit 82176e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoconfig.functions
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 82176e8

Please sign in to comment.