diff options
author | Kim Alvefur <zash@zash.se> | 2022-10-20 17:37:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-10-20 17:37:07 +0200 |
commit | e673312b7f9142c0f8d50daf8de11eb398d5e1e9 (patch) | |
tree | a100f4c3b75a8dd6d84cf6f80532fbe0b378f6d4 | |
parent | 640b8d49a302b8c5b2ecbc9a8464b0d409eade5d (diff) | |
download | prosody-e673312b7f9142c0f8d50daf8de11eb398d5e1e9.tar.gz prosody-e673312b7f9142c0f8d50daf8de11eb398d5e1e9.zip |
util.prosodyctl: Remove Lua 5.1 os.execute() return value compat
-rw-r--r-- | util/prosodyctl.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index 4d49cd16..b3163799 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -224,8 +224,7 @@ local function call_luarocks(operation, mod, server) 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 { |