diff options
| author | ruki <[email protected]> | 2017-05-24 21:03:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-24 21:03:43 +0800 |
| commit | 2d075777fd3ab515f508eedf08dd596ac9fdda93 (patch) | |
| tree | 42202806994a86226553816f56b2fc2e4f4d5c13 /xmake/modules/detect/tool/find_sudo.lua | |
| parent | 7ef69739513b4b4431f6f683fe2a9d297658be02 (diff) | |
improve sudo and build test script
Diffstat (limited to 'xmake/modules/detect/tool/find_sudo.lua')
| -rw-r--r-- | xmake/modules/detect/tool/find_sudo.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tool/find_sudo.lua b/xmake/modules/detect/tool/find_sudo.lua index 32bd86456..968746020 100644 --- a/xmake/modules/detect/tool/find_sudo.lua +++ b/xmake/modules/detect/tool/find_sudo.lua @@ -42,12 +42,12 @@ import("lib.detect.find_programver") function main(opt) -- find program - local program = find_program("sudo", { "/usr/bin", "/usr/local/bin"}) + local program = find_program("sudo", { "/usr/bin", "/usr/local/bin"}, "-h") -- find program version local version = nil if program and opt and opt.version then - version = find_programver(program) + version = find_programver(program, "-V") end -- ok? |
