aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-20 17:37:07 +0200
committerKim Alvefur <zash@zash.se>2022-10-20 17:37:07 +0200
commite673312b7f9142c0f8d50daf8de11eb398d5e1e9 (patch)
treea100f4c3b75a8dd6d84cf6f80532fbe0b378f6d4 /util
parent640b8d49a302b8c5b2ecbc9a8464b0d409eade5d (diff)
downloadprosody-e673312b7f9142c0f8d50daf8de11eb398d5e1e9.tar.gz
prosody-e673312b7f9142c0f8d50daf8de11eb398d5e1e9.zip
util.prosodyctl: Remove Lua 5.1 os.execute() return value compat
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua3
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 {