fix an issue with bin/plugin update with no arguments and no locally installed gems

Fixes #3063
This commit is contained in:
Pier-Hugues Pellerin 2015-04-21 09:28:55 -04:00 committed by Jordan Sissel
parent 2f2fe21b78
commit ba00a3805c

View file

@ -14,7 +14,7 @@ class LogStash::PluginManager::Update < LogStash::PluginManager::Command
def execute
local_gems = gemfile.locally_installed_gems
if update_all? || !local_gems.empty?
if update_all? && !local_gems.empty?
error_plugin_that_use_path!(local_gems)
else
plugins_with_path = plugins_arg & local_gems