diff options
| author | ruki <[email protected]> | 2020-04-29 00:26:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-28 20:41:17 +0800 |
| commit | 5b2e38daf2ba5a55d0856b727a9cec076ab6c0d3 (patch) | |
| tree | e70885370820077f757c0428299bfcfc4f20cd6f | |
| parent | 557405e0ab092384ed237bd9ad0951135dd8de4a (diff) | |
improve os.exec
| -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 |
