# HG changeset patch # User Kim Alvefur # Date 1611252928 -3600 # Node ID 06bb0cdef50b6cb2133a4334cc935c3829c34b66 # Parent 50ea7d9143ada1bfc137cd4e7e413d86b3b57dc4 util.prosodyctl: Always return exit code from luarocks os.exit(true) errors on Lua 5.1 diff -r 50ea7d9143ad -r 06bb0cdef50b util/prosodyctl.lua --- a/util/prosodyctl.lua Thu Jan 21 19:11:27 2021 +0100 +++ b/util/prosodyctl.lua Thu Jan 21 19:15:28 2021 +0100 @@ -225,10 +225,7 @@ 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 {