summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-07-05 16:37:41 +0800
committerruki <[email protected]>2016-07-05 16:37:41 +0800
commit7af1dcdeed9e2ecbfc0ba0f4c34e52c99e1cdd89 (patch)
tree5d8b2b77ddca5024f350093f882c93a03f7a69e9 /xmake/core/tool/tool.lua
parent7f75b2583b94e733ba0b974860174a9021bc8767 (diff)
uses os.exec instead of os.execute
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index ffdf748f4..ec832d781 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -206,7 +206,7 @@ function tool._check(shellname, check)
-- no checker? attempt to run it directly
if not module or not module.check then
- return 0 == os.execute(string.format("%s > %s 2>&1", shellname, xmake._NULDEV))
+ return 0 == os.exec(shellname, xmake._NULDEV, xmake._NULDEV)
end
-- check it