aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/file_io.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 73b70f3f..257eb5ef 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -460,7 +460,8 @@ if WIN32 then
return file
end
os.execute = function(prog)
+ if not prog then return true end -- shell is available
local code = winapi.execute(prog)
- if code then return code == 0 and true or nil, 'exit', code end
+ return code == 0 and true or nil, 'exit', code
end
end