summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tool/find_sudo.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-06 18:41:05 +0800
committerruki <[email protected]>2017-06-06 18:41:05 +0800
commit2309c5ec03eb09842814bcf03fffa8fa93999acf (patch)
treed0e796ee7eff59a38eae6979b069a574eb51fe40 /xmake/modules/detect/tool/find_sudo.lua
parentb62c9a1a532058db12fb73cdfeb0e174c8cbf2f2 (diff)
add find_library and remove some old codes
Diffstat (limited to 'xmake/modules/detect/tool/find_sudo.lua')
-rw-r--r--xmake/modules/detect/tool/find_sudo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tool/find_sudo.lua b/xmake/modules/detect/tool/find_sudo.lua
index 968746020..3d0082b17 100644
--- a/xmake/modules/detect/tool/find_sudo.lua
+++ b/xmake/modules/detect/tool/find_sudo.lua
@@ -42,7 +42,7 @@ import("lib.detect.find_programver")
function main(opt)
-- find program
- local program = find_program("sudo", { "/usr/bin", "/usr/local/bin"}, "-h")
+ local program = find_program("sudo", {}, "-h")
-- find program version
local version = nil