equal
deleted
inserted
replaced
164 |
164 |
165 local os_execute = os.execute; |
165 local os_execute = os.execute; |
166 setmetatable(_M, { |
166 setmetatable(_M, { |
167 __index = function(_, command) |
167 __index = function(_, command) |
168 return function(opts) |
168 return function(opts) |
169 local ret = os_execute(serialize(command, type(opts) == "table" and opts or {})); |
169 return os_execute(serialize(command, type(opts) == "table" and opts or {})); |
170 return ret == true or ret == 0; |
|
171 end; |
170 end; |
172 end; |
171 end; |
173 }); |
172 }); |
174 end |
173 end |
175 |
174 |