Diff

util/prosodyctl.lua @ 10148:263b61d03d70

util.prosodyctl: Corrected indentation on my code
author João Duarte <jvsDuarte08@gmail.com>
date Sat, 20 Jul 2019 12:41:31 -0700
parent 10136:38775965fcd5
child 10152:7e9c30eab11e
line wrap: on
line diff
--- 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 {