Skip to content

Commit

Permalink
- Fixed minor update --system bug only affecting output
Browse files Browse the repository at this point in the history
  • Loading branch information
zenspider committed Feb 2, 2011
1 parent 4427545 commit 5099b99
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/rubygems/commands/update_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def execute

def do_rubygems_update(version)
args = []
args.push '--prefix', Gem.prefix unless Gem.prefix.nil?
args << '--prefix' << Gem.prefix if Gem.prefix
args << '--no-rdoc' unless options[:generate_rdoc]
args << '--no-ri' unless options[:generate_ri]
args << '--no-format-executable' if options[:no_format_executable]
Expand All @@ -148,9 +148,10 @@ def do_rubygems_update(version)

# Make sure old rubygems isn't loaded
old = ENV["RUBYOPT"]
ENV.delete("RUBYOPT")
system setup_cmd
ENV.delete("RUBYOPT") if old
result = system setup_cmd
ENV["RUBYOPT"] = old if old
result
end
end

Expand Down

0 comments on commit 5099b99

Please sign in to comment.