diff options
Diffstat (limited to 'xmake/core/tool/tool.lua')
| -rw-r--r-- | xmake/core/tool/tool.lua | 2 |
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 |
