author | Kim Alvefur <zash@zash.se> |
Thu, 20 Oct 2022 17:37:07 +0200 | |
changeset 12789 | 123d74bf60e3 |
parent 12788 | 3b9de8dd71a3 |
child 12790 | 5d4957c8a972 |
--- a/util/prosodyctl.lua Thu Oct 20 17:36:05 2022 +0200 +++ b/util/prosodyctl.lua Thu Oct 20 17:37:07 2022 +0200 @@ -224,8 +224,7 @@ local ok, _, code = os.execute(render_cli("luarocks --lua-version={luav} {op} --tree={dir} {server&--server={server}} {mod?}", { dir = dir; op = operation; mod = mod; server = server; luav = _VERSION:match("5%.%d"); })); - if type(ok) == "number" then code = ok; end - return code; + return ok and code; end return {