diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-21 19:15:28 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-21 19:15:28 +0100 |
commit | d1ace000c7103295677e778a26bee06f7d4b36e3 (patch) | |
tree | c2cb3420ad5e193254c260fd89a51af55d7e5923 | |
parent | ea529c8062f704c4a8fbc2ae95bddc4302c9c507 (diff) | |
download | prosody-d1ace000c7103295677e778a26bee06f7d4b36e3.tar.gz prosody-d1ace000c7103295677e778a26bee06f7d4b36e3.zip |
util.prosodyctl: Always return exit code from luarocks
os.exit(true) errors on Lua 5.1
-rw-r--r-- | util/prosodyctl.lua | 5 |
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 { |