From 640b8d49a302b8c5b2ecbc9a8464b0d409eade5d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 20 Oct 2022 17:36:05 +0200 Subject: util.openssl: Remove Lua 5.1 os.execute() return value compat --- util/openssl.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util/openssl.lua') diff --git a/util/openssl.lua b/util/openssl.lua index 32b5aea7..3acb4f04 100644 --- a/util/openssl.lua +++ b/util/openssl.lua @@ -166,8 +166,7 @@ do -- Lua to shell calls. 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; }); -- cgit v1.2.3