From c255e1fef113cea950adaac8237cfa4793274d51 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Wed, 15 Mar 2023 17:51:15 +0800 Subject: fix env.lua warning --- xmake/modules/private/xrepo/action/env.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua index fbe7dce7f..0c547a1ed 100644 --- a/xmake/modules/private/xrepo/action/env.lua +++ b/xmake/modules/private/xrepo/action/env.lua @@ -438,7 +438,7 @@ function main() os.rm(path.join(_get_envsdir(), envname .. ".lua")) else local program = option.get("program") - if program and program == "shell" and is_subhost("windows") then + if program and program == "shell" and not is_subhost("windows") then wprint("The shell was not integrated with xmake. Some features might be missing. Please switch to your default shell, and run `xmake update --integrate` to integrate the shell.") end local envs = _package_getenvs() -- cgit v1.3.1