diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-17 03:31:02 -0700 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-07-17 03:31:02 -0700 |
commit | cb669478c458fec600dd7765d295d5aeeb3f4b95 (patch) | |
tree | 05a8965097d698aef25439ba02b923eb5a66d372 /prosodyctl | |
parent | dba11eabd8f6dd8b60eada5e7d22b7ad0e344b19 (diff) | |
download | prosody-cb669478c458fec600dd7765d295d5aeeb3f4b95.tar.gz prosody-cb669478c458fec600dd7765d295d5aeeb3f4b95.zip |
prosodyctl: Improved the 'list' command
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -164,7 +164,7 @@ function commands.install(arg) end function commands.list(arg) - if not arg[1] or arg[1] == "--help" then + if arg[1] == "--help" then show_usage([[list]], [[Shows installed rocks]]); return 1; end @@ -174,10 +174,10 @@ function commands.list(arg) if arg[1] and arg[1]:sub(1, #flag) == flag then local dir = arg[1]:match("=(.+)$") -- These extra double brackets allow us to correctly process names with spaces - os.execute("luarocks list --tree=".."'"..dir.."'") + os.execute("luarocks list --tree='"..dir.."'") return 0; else - os.execute("luarocks list --tree="..prosody.paths.data.."/rocks") + os.execute("luarocks list --tree="..prosody.paths.plugins) return 0; end end |