diff options
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? |
