From 4b22be76515f10dc1dbc0e890d181b2367436f03 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 21 Jan 2021 19:15:28 +0100 Subject: util.prosodyctl: Always return exit code from luarocks os.exit(true) errors on Lua 5.1 --- util/prosodyctl.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'util') diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index efe3f5f3..f659d7f4 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -225,10 +225,7 @@ local function call_luarocks(operation, mod, server) dir = dir; op = operation; mod = mod; server = server; })); if type(ok) == "number" then ok, code = ok == 0, ok; end - if not ok then - return code; - end - return true; + return code; end return { -- cgit v1.2.3