summaryrefslogtreecommitdiff
path: root/xmake/core/main.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2020-01-21 20:01:42 +0800
committerOpportunityLiu <[email protected]>2020-01-21 20:01:42 +0800
commita2e9c36efd709056507bb260f7d9ccaf7337a2f6 (patch)
treeb94438ef1187079dc1356cba5f01baab41c9a420 /xmake/core/main.lua
parent19e11d5150fd2496a74f2e461673698e591be008 (diff)
fix
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.