aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorJoão Duarte <jvsDuarte08@gmail.com>2019-07-20 12:41:31 -0700
committerJoão Duarte <jvsDuarte08@gmail.com>2019-07-20 12:41:31 -0700
commitc21b60857f9f0f6b15e9f95ee11ec6291b56c574 (patch)
tree5761419bc7a99ca9eeb8cdd7bf6ed6900e940cee /util/prosodyctl.lua
parentaaac83292f531d4f5b540bc8e35e5e8999ae21cb (diff)
downloadprosody-c21b60857f9f0f6b15e9f95ee11ec6291b56c574.tar.gz
prosody-c21b60857f9f0f6b15e9f95ee11ec6291b56c574.zip
util.prosodyctl: Corrected indentation on my code
Diffstat (limited to 'util/prosodyctl.lua')
-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 {