summaryrefslogtreecommitdiff
path: root/xmake/core/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/main.lua')
-rw-r--r--xmake/core/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index bc8bc04b5..4a8c05b7a 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -217,7 +217,7 @@ function main.entry()
end
-- check run command as root
- if not option.get("root") and (not os.getenv("XMAKE_ROOT") or os.getenv("XMAKE_ROOT") ~= 'y') then
+ if not option.get("root") and os.getenv("XMAKE_ROOT") ~= 'y' then
if os.isroot() then
if not privilege.store() or os.isroot() then
utils.error([[Running xmake as root is extremely dangerous and no longer supported.