summaryrefslogtreecommitdiff
path: root/xmake/modules/privilege/sudo.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-26 23:51:21 +0800
committerruki <[email protected]>2024-01-26 23:51:21 +0800
commitc4e9dcda21240b9683273a771d4c79446d706d91 (patch)
tree8f47530b78323c88de7e2ee8d61e8510c8cfdd58 /xmake/modules/privilege/sudo.lua
parent9d01da2a9127f8400e231cfc38e80fa7320b6ef0 (diff)
improve sudo lua
Diffstat (limited to 'xmake/modules/privilege/sudo.lua')
-rw-r--r--xmake/modules/privilege/sudo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/privilege/sudo.lua b/xmake/modules/privilege/sudo.lua
index d1fd93b76..ac872ac67 100644
--- a/xmake/modules/privilege/sudo.lua
+++ b/xmake/modules/privilege/sudo.lua
@@ -85,7 +85,7 @@ function _lua(runner, luafile, luaargv)
end
-- run it with administrator permission
- _sudov(runner, "xmake", table.join(argv, luafile, luaargv))
+ _sudov(runner, os.programfile(), table.join(argv, luafile, luaargv))
end
-- has sudo?