core: 修正虚拟机判断

This commit is contained in:
bin456789 2023-11-10 21:18:04 +08:00
parent 0c85cb141d
commit a9cd00f7da
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -258,7 +258,7 @@ is_virt() {
done
if [ -z "$_is_virt" ]; then
if wmic /namespace:'\\root\cimv2' PATH Win32_Fan 2>/dev/null | head -1 | grep -q Name; then
_is_virt=true
_is_virt=false
fi
fi
else