diff options
Diffstat (limited to 'lib/rubygems/install_update_options.rb')
-rw-r--r-- | lib/rubygems/install_update_options.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/install_update_options.rb b/lib/rubygems/install_update_options.rb index ffb7d1b233..b95a56f03f 100644 --- a/lib/rubygems/install_update_options.rb +++ b/lib/rubygems/install_update_options.rb @@ -136,9 +136,9 @@ module Gem::InstallUpdateOptions add_option(:"Install/Update", "-g", "--file [FILE]", "Read from a gem dependencies API file and", "install the listed gems") do |v,_o| - v = Gem::GEM_DEP_FILES.find do |file| + v ||= Gem::GEM_DEP_FILES.find do |file| File.exist? file - end unless v + end unless v message = v ? v : "(tried #{Gem::GEM_DEP_FILES.join ", "})" |