mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
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:
parent
51874b88d1
commit
20087cc2a6
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue