fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane-2.61.0.beta.20171006010004 vs fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane-2.61.0.beta.20171007010004
- old
+ new
@@ -183,11 +183,16 @@
# Warning: This will exec out
# This is necessary since the user might be prompted for their password
def update_dependencies!
puts "Updating plugin dependencies..."
ensure_plugins_attached!
+ plugins = available_plugins
+ if plugins.empty?
+ UI.user_error!("No plugins are installed")
+ end
with_clean_bundler_env do
cmd = "bundle update"
+ cmd << " #{plugins.join(' ')}"
cmd << " --quiet" unless FastlaneCore::Globals.verbose?
cmd << " && echo 'Successfully updated plugins'"
UI.command(cmd) if FastlaneCore::Globals.verbose?
exec(cmd)
end