# HG changeset patch # User João Duarte # Date 1563651691 25200 # Node ID 263b61d03d70898d88316fd33a5bf4ae26aa49f6 # Parent 1a35b3a2b11be4952ea24490aede1d7a9788a724 util.prosodyctl: Corrected indentation on my code diff -r 1a35b3a2b11b -r 263b61d03d70 util/prosodyctl.lua --- a/util/prosodyctl.lua Sat Jul 20 12:41:06 2019 -0700 +++ b/util/prosodyctl.lua Sat Jul 20 12:41:31 2019 -0700 @@ -279,24 +279,24 @@ end local function admin_operation(operation, arg) - if arg[1] == "--help" then - print(" admin-"..operation) - print(" "..operation.."plugins from a server (repository)") - return 1; + 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) + 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 {