mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -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__
|
if $0 == __FILE__
|
||||||
begin
|
begin
|
||||||
LogStash::PluginManager::Main.run("bin/plugin", ARGV)
|
LogStash::PluginManager::Main.run("bin/logstash-plugin", ARGV)
|
||||||
rescue LogStash::PluginManager::Error => e
|
rescue LogStash::PluginManager::Error => e
|
||||||
$stderr.puts(e.message)
|
$stderr.puts(e.message)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
|
@ -3,7 +3,7 @@ require_relative "default_plugins"
|
||||||
namespace "plugin" do
|
namespace "plugin" do
|
||||||
|
|
||||||
def install_plugins(*args)
|
def install_plugins(*args)
|
||||||
system("bin/plugin", "install", *args)
|
system("bin/logstash-plugin", "install", *args)
|
||||||
raise(RuntimeError, $!.to_s) unless $?.success?
|
raise(RuntimeError, $!.to_s) unless $?.success?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue