Changeset

10150:baded8cd7da3

prosodyctl: Corrected the outputs from the install command
author João Duarte <jvsDuarte08@gmail.com>
date Tue, 23 Jul 2019 08:36:06 -0700
parents 10149:0a24d886734a
children 10151:e58034955002
files prosodyctl
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Tue Jul 23 07:21:08 2019 -0700
+++ b/prosodyctl	Tue Jul 23 08:36:06 2019 -0700
@@ -165,7 +165,7 @@
 
 function commands.install(arg)
 	if arg[1] == "--help" then
-		show_usage([[make]], [[Installs a rockspec/rock from a specified server]]);
+		show_usage([[make]], [[Installs a prosody/luarocks plugin]]);
 		return 1;
 	end
 	-- Need to think about the case with many flags
@@ -173,12 +173,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("Installing module "..arg[2].." at "..dir..", from luarocks repo")
+		print("Installing module "..arg[2].." at "..dir)
 		-- These extra double brackets allow us to correctly process names with spaces
 		os.execute("luarocks install --tree='"..dir.."' "..arg[2])
 		return 0;
 	else
-		print("Installing module "..arg[1].." locally, from luarocks repo")
+		print("Installing module "..arg[1].." at "..prosody.paths.plugins)
 		os.execute("luarocks --tree='"..prosody.paths.plugins.."' install "..arg[1])
 		return 0;
 	end