aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua36
1 files changed, 18 insertions, 18 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index c2235e85..6f7bf065 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -279,24 +279,24 @@ local function reload()
end
local function admin_operation(operation, arg)
- if arg[1] == "--help" then
- print(" admin-"..operation)
- print(" "..operation.."plugins from a server (repository)")
- return 1;
- end
- local modules, tree, server, refresh = "", "", "", ""
- for i, _ in ipairs(arg) do
- if arg[i]:sub(1, #"--tree=") == "--tree=" then
- tree = arg[i].." "
- elseif arg[i]:sub(1, #"--server=") == "--server=" then
- server = arg[i].." "
- elseif arg[i]:sub(1, #"--no-refresh") == "--no-refresh" then
- refresh = arg[i].." "
- else
- modules=modules..arg[i].." "
- end
- end
- os.execute("luarocks-admin "..tree..operation..server..refresh..modules)
+ if arg[1] == "--help" then
+ print(" admin-"..operation)
+ print(" "..operation.."plugins from a server (repository)")
+ return 1;
+ end
+ local modules, tree, server, refresh = "", "", "", ""
+ for i, _ in ipairs(arg) do
+ if arg[i]:sub(1, #"--tree=") == "--tree=" then
+ tree = arg[i].." "
+ elseif arg[i]:sub(1, #"--server=") == "--server=" then
+ server = arg[i].." "
+ elseif arg[i]:sub(1, #"--no-refresh") == "--no-refresh" then
+ refresh = arg[i].." "
+ else
+ modules=modules..arg[i].." "
+ end
+ end
+ os.execute("luarocks-admin "..tree..operation..server..refresh..modules)
end
return {