diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-23 08:36:06 -0700 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-23 08:36:06 -0700 |
commit | 1352b68bc283b1621e04e3bbfd28fdebaf9f4cc7 (patch) | |
tree | 1dd554cb29215748e4cc4ce904e0a1502ad2f7be /prosodyctl | |
parent | cf6a8d7e5aa887e7c0a51e95c37dc96ac2ea4d76 (diff) | |
download | prosody-1352b68bc283b1621e04e3bbfd28fdebaf9f4cc7.tar.gz prosody-1352b68bc283b1621e04e3bbfd28fdebaf9f4cc7.zip |
prosodyctl: Corrected the outputs from the install command
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -165,7 +165,7 @@ end 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 @@ function commands.install(arg) -- 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 |