aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-21 19:15:28 +0100
committerKim Alvefur <zash@zash.se>2021-01-21 19:15:28 +0100
commit4b22be76515f10dc1dbc0e890d181b2367436f03 (patch)
treec2cb3420ad5e193254c260fd89a51af55d7e5923 /util
parent6b72b61a11e94f6d7e003b5d88965057a5b9e6c7 (diff)
downloadprosody-4b22be76515f10dc1dbc0e890d181b2367436f03.tar.gz
prosody-4b22be76515f10dc1dbc0e890d181b2367436f03.zip
util.prosodyctl: Always return exit code from luarocks
os.exit(true) errors on Lua 5.1
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua5
1 files changed, 1 insertions, 4 deletions
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 {