aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/prosodyctl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index f47c54da..f7d9a3cc 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -224,7 +224,7 @@ local function call_luarocks(operation, mod, server)
local ok, _, code = os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", {
dir = dir; op = operation; mod = mod; server = server;
}));
- if type(ok) == "number" then ok, code = ok == 0, ok; end
+ if type(ok) == "number" then code = ok; end
return code;
end