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
commitd1ace000c7103295677e778a26bee06f7d4b36e3 (patch)
treec2cb3420ad5e193254c260fd89a51af55d7e5923 /util
parentea529c8062f704c4a8fbc2ae95bddc4302c9c507 (diff)
downloadprosody-d1ace000c7103295677e778a26bee06f7d4b36e3.tar.gz
prosody-d1ace000c7103295677e778a26bee06f7d4b36e3.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 {