core: 修正虚拟机判断
This commit is contained in:
parent
0c85cb141d
commit
a9cd00f7da
@ -258,7 +258,7 @@ is_virt() {
|
|||||||
done
|
done
|
||||||
if [ -z "$_is_virt" ]; then
|
if [ -z "$_is_virt" ]; then
|
||||||
if wmic /namespace:'\\root\cimv2' PATH Win32_Fan 2>/dev/null | head -1 | grep -q Name; 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
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user