From 5b2e38daf2ba5a55d0856b727a9cec076ab6c0d3 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 29 Apr 2020 00:26:52 +0800 Subject: improve os.exec --- xmake/core/sandbox/modules/os.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/sandbox/modules/os.lua b/xmake/core/sandbox/modules/os.lua index c1a7c6c01..d9ebfe9d1 100644 --- a/xmake/core/sandbox/modules/os.lua +++ b/xmake/core/sandbox/modules/os.lua @@ -337,7 +337,7 @@ function sandbox_os.exec(cmd, ...) -- run it local ok, errors = os.exec(cmd) - if ok ~= 0 and errors then + if ok ~= 0 then if ok ~= nil then errors = string.format("exec(%s) failed(%d)", cmd, ok) else -- cgit v1.3.1