diff options
-rw-r--r-- | core/file_io.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index cbd1bed9..cf877a37 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -440,6 +440,6 @@ if WIN32 then end os.execute = function(prog) local code = winapi.execute(prog) - if code then return true, 'exit', code end + if code then return code == 0 and true or nil, 'exit', code end end end |