summaryrefslogtreecommitdiff
path: root/xmake/core/sandbox/modules/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-30 20:43:35 +0800
committerruki <[email protected]>2017-03-30 20:43:35 +0800
commit8cece0ebb4012780f8c290f38e7bb022e59b6782 (patch)
tree0be764a61a8fe99eabd1507fdcea09c813fb8a2b /xmake/core/sandbox/modules/os.lua
parentdd3e97f4c1d1ede059b3cc6f52808409b4462c36 (diff)
fix root bug for installation
Diffstat (limited to 'xmake/core/sandbox/modules/os.lua')
-rw-r--r--xmake/core/sandbox/modules/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua
index 94b78c6b8..55950f7de 100644
--- a/xmake/core/sandbox/modules/os.lua
+++ b/xmake/core/sandbox/modules/os.lua
@@ -503,7 +503,7 @@ end
function sandbox_os.sudol(runner, luafile, luaargv)
-- init argv
- local argv = {"lua"}
+ local argv = {"lua", "--root"}
for _, name in ipairs({"file", "project", "backtrace", "verbose", "quiet"}) do
local value = option.get(name)
if type(value) == "string" then