diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-20 12:41:31 -0700 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-20 12:41:31 -0700 |
commit | f55bf2aace5ee3389366f0c5ef800d0ae197a8e3 (patch) | |
tree | 5761419bc7a99ca9eeb8cdd7bf6ed6900e940cee /util | |
parent | 7ce0a7906de49266babf5b0e3de2eccb011f1662 (diff) | |
download | prosody-f55bf2aace5ee3389366f0c5ef800d0ae197a8e3.tar.gz prosody-f55bf2aace5ee3389366f0c5ef800d0ae197a8e3.zip |
util.prosodyctl: Corrected indentation on my code
Diffstat (limited to 'util')
-rw-r--r-- | util/prosodyctl.lua | 36 |
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 { |