prosodyctl: Corrected output printed by the remove command
authorJoão Duarte <jvsDuarte08@gmail.com>
Tue, 23 Jul 2019 07:21:08 -0700
changeset 10153 0a24d886734a
parent 10152 263b61d03d70
child 10154 baded8cd7da3
prosodyctl: Corrected output printed by the remove command
prosodyctl
--- a/prosodyctl	Sat Jul 20 12:41:31 2019 -0700
+++ b/prosodyctl	Tue Jul 23 07:21:08 2019 -0700
@@ -151,12 +151,12 @@
 	-- I'm considering the flag is the first, but there can be many flags
 	if arg[1] and arg[1]:sub(1, #flag) == flag then
 		local dir = arg[1]:match("=(.+)$")
-		print("Removing module "..arg[2].." at "..dir..", from luarocks repo")
+		print("Removing module "..arg[2].." at "..dir)
 		-- These extra double brackets allow us to correctly process names with spaces
 		os.execute("luarocks remove --tree='"..dir.."' "..arg[2])
 		return 0;
 	else
-		print("Removing "..arg[1].." from ./plugins")
+		print("Removing "..arg[1].." from "..prosody.paths.plugins)
 		os.execute("luarocks --tree='"..prosody.paths.plugins.."' remove "..arg[1])
 		print("Done!")
 		return 0;