diff options
| author | ruki <[email protected]> | 2017-09-20 22:43:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-20 10:23:34 +0800 |
| commit | 29d8859222252ffa54536c0d324290a0c9f2eb41 (patch) | |
| tree | daf38b4f51fcdfafc388edbcb96107ce30a5195a /xmake/modules/privilege/sudo.lua | |
| parent | 218e2711e1afacd334ce50b37b0fa2d2db573e8e (diff) | |
add --yes to confirm the user input
Diffstat (limited to 'xmake/modules/privilege/sudo.lua')
| -rw-r--r-- | xmake/modules/privilege/sudo.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/privilege/sudo.lua b/xmake/modules/privilege/sudo.lua index 940dec365..30a7377d8 100644 --- a/xmake/modules/privilege/sudo.lua +++ b/xmake/modules/privilege/sudo.lua @@ -79,7 +79,7 @@ function _lua(runner, luafile, luaargv) -- init argv local argv = {"lua", "--root"} - for _, name in ipairs({"file", "project", "backtrace", "verbose", "quiet"}) do + for _, name in ipairs({"file", "project", "backtrace", "verbose", "quiet", "yes"}) do local value = option.get(name) if type(value) == "string" then table.insert(argv, "--" .. name .. "=" .. value) |
