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 | 4b22be76515f10dc1dbc0e890d181b2367436f03 (patch) | |
tree | c2cb3420ad5e193254c260fd89a51af55d7e5923 /util/prosodyctl.lua | |
parent | 6b72b61a11e94f6d7e003b5d88965057a5b9e6c7 (diff) | |
download | prosody-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/prosodyctl.lua')
-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 { |