Changeset

12784:3b9de8dd71a3

util.openssl: Remove Lua 5.1 os.execute() return value compat
author Kim Alvefur <zash@zash.se>
date Thu, 20 Oct 2022 17:36:05 +0200
parents 12783:d513e4bd4928
children 12785:123d74bf60e3
files util/openssl.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	});