util.openssl: Remove Lua 5.1 os.execute() return value compat
authorKim Alvefur <zash@zash.se>
Thu, 20 Oct 2022 17:36:05 +0200
changeset 12788 3b9de8dd71a3
parent 12787 d513e4bd4928
child 12789 123d74bf60e3
util.openssl: Remove Lua 5.1 os.execute() return value compat
util/openssl.lua
--- a/util/openssl.lua	Thu Oct 20 17:35:01 2022 +0200
+++ b/util/openssl.lua	Thu Oct 20 17:36:05 2022 +0200
@@ -166,8 +166,7 @@
 	setmetatable(_M, {
 		__index = function(_, command)
 			return function(opts)
-				local ret = os_execute(serialize(command, type(opts) == "table" and opts or {}));
-				return ret == true or ret == 0;
+				return os_execute(serialize(command, type(opts) == "table" and opts or {}));
 			end;
 		end;
 	});