comparison util/openssl.lua @ 7462:ced4e800f42a

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 28 Jun 2016 14:54:43 +0100
parents 82710f8c1fe6
children 88a92ba697bf
comparison
equal deleted inserted replaced
7456:76a8456cf1e2 7462:ced4e800f42a
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 return 0 == os_execute(serialize(command, type(opts) == "table" and opts or {})); 169 local ret = os_execute(serialize(command, type(opts) == "table" and opts or {}));
170 return ret == true or ret == 0;
170 end; 171 end;
171 end; 172 end;
172 }); 173 });
173 end 174 end
174 175