fix commands still using bin/plugin and not the new logstash-plugin so feedback to users when errors happen got strange

Fixes #4945
This commit is contained in:
Pere Urbon-Bayes 2016-03-31 10:16:17 +02:00
parent 51874b88d1
commit 20087cc2a6
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ end
if $0 == __FILE__
begin
LogStash::PluginManager::Main.run("bin/plugin", ARGV)
LogStash::PluginManager::Main.run("bin/logstash-plugin", ARGV)
rescue LogStash::PluginManager::Error => e
$stderr.puts(e.message)
exit(1)

View file

@ -3,7 +3,7 @@ require_relative "default_plugins"
namespace "plugin" do
def install_plugins(*args)
system("bin/plugin", "install", *args)
system("bin/logstash-plugin", "install", *args)
raise(RuntimeError, $!.to_s) unless $?.success?
end