utils: tweak install_gem_setup_path to not warn.
If the `Gem.user_dir/bin` is not already in the PATH it'll complain unnecessarily (as we add it to the PATH ourselves) so just add it to the PATH before running the install.
This commit is contained in:
parent
9e8103cf38
commit
167dac74b7
@ -122,10 +122,10 @@ module Homebrew
|
||||
|
||||
def self.install_gem_setup_path! gem
|
||||
return if quiet_system "gem", "list", "--installed", gem
|
||||
system "gem", "install", "--no-ri", "--no-rdoc",
|
||||
"--user-install", gem
|
||||
require "rubygems"
|
||||
ENV["PATH"] = "#{Gem.user_dir}/bin:#{ENV["PATH"]}"
|
||||
system "gem", "install", "--no-ri", "--no-rdoc",
|
||||
"--user-install", gem
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user