diff options
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index c15bdbc6..3dcfbd38 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -226,12 +226,17 @@ local function call_luarocks(operation, mod, server) elseif operation == "remove" then show_message("Removing %s from %s", mod, dir); end - os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { + local ok, where, code = os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { 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 if operation == "install" then show_module_configuration_help(mod); end + return true; end return { |