aboutsummaryrefslogtreecommitdiffstats
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
commitf55bf2aace5ee3389366f0c5ef800d0ae197a8e3 (patch)
tree5761419bc7a99ca9eeb8cdd7bf6ed6900e940cee
parent7ce0a7906de49266babf5b0e3de2eccb011f1662 (diff)
downloadprosody-f55bf2aace5ee3389366f0c5ef800d0ae197a8e3.tar.gz
prosody-f55bf2aace5ee3389366f0c5ef800d0ae197a8e3.zip
util.prosodyctl: Corrected indentation on my code
-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 {