Mercurial > prosody-hg
comparison util/prosodyctl.lua @ 11299:abe8cd8fad14
util.prosodyctl: Remove unused calculation [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 21 Jan 2021 19:18:38 +0100 |
| parents | 79466cc86041 |
| children | 34d4e4a01ef8 |
comparison
equal
deleted
inserted
replaced
| 11298:79466cc86041 | 11299:abe8cd8fad14 |
|---|---|
| 222 local function call_luarocks(operation, mod, server) | 222 local function call_luarocks(operation, mod, server) |
| 223 local dir = prosody.paths.installer; | 223 local dir = prosody.paths.installer; |
| 224 local ok, _, code = os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { | 224 local ok, _, code = os.execute(render_cli("luarocks {op} --tree={dir} {server&--server={server}} {mod?}", { |
| 225 dir = dir; op = operation; mod = mod; server = server; | 225 dir = dir; op = operation; mod = mod; server = server; |
| 226 })); | 226 })); |
| 227 if type(ok) == "number" then ok, code = ok == 0, ok; end | 227 if type(ok) == "number" then code = ok; end |
| 228 return code; | 228 return code; |
| 229 end | 229 end |
| 230 | 230 |
| 231 return { | 231 return { |
| 232 show_message = show_message; | 232 show_message = show_message; |
