diff options
| -rw-r--r-- | xmake/core/sandbox/modules/os.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
