diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-23 07:21:08 -0700 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-23 07:21:08 -0700 |
commit | cf6a8d7e5aa887e7c0a51e95c37dc96ac2ea4d76 (patch) | |
tree | ba0ce9dd4afd5354aba64f57b191669731273d68 /prosodyctl | |
parent | f55bf2aace5ee3389366f0c5ef800d0ae197a8e3 (diff) | |
download | prosody-cf6a8d7e5aa887e7c0a51e95c37dc96ac2ea4d76.tar.gz prosody-cf6a8d7e5aa887e7c0a51e95c37dc96ac2ea4d76.zip |
prosodyctl: Corrected output printed by the remove command
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -151,12 +151,12 @@ function commands.remove(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("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; |