From 03d787c0aca4c2267a1535cfc7bbb25372a5d349 Mon Sep 17 00:00:00 2001
From: Jo?o Duarte <jvsDuarte08@gmail.com>
Date: Wed, 31 Jul 2019 10:02:42 -0700
Subject: util.prosodyctl: Function now differentiates its output, depending if
 it is being called by install or remove

---
 util/prosodyctl.lua | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 22571061..a98a89d7 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -307,9 +307,15 @@ local function check_flags(arg)
 end
 
 local function call_luarocks(operation, mod, dir)
+	if operation == "install" then
 		show_message("Installing %s at %s", mod, dir);
-		os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod);
+	elseif operation == "remove" then
+		show_message("Removing %s from %s", mod, dir);
+	end
+	os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod);
+	if operation == "install" then
 		show_module_configuration_help(mod);
+	end
 end
 
 return {
-- 
cgit v1.2.3