On Wed, Dec 16, 2020 at 09:01:17AM +0800, Zhang Yu wrote:
Signed-off-by: Zhang Yu 2134782174@qq.com
lib/env.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/env.sh b/lib/env.sh index 78cfd6f57..fc34aaa8d 100755 --- a/lib/env.sh +++ b/lib/env.sh @@ -69,7 +69,8 @@ is_virt() # run as root [ -n "$(virt-what)" ] else
grep -q -w hypervisor /proc/cpuinfo
grep -q -w hypervisor /proc/cpuinfo && return 1
Are you sure? return 1 means false for shell.
fireturn 0
}
-- 2.23.0