diff options
| author | Mike McQuaid | 2015-01-02 13:35:36 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-02 13:37:06 +0000 |
| commit | 167dac74b75b8a6b5aae89ab2a7a0b739184cda3 (patch) | |
| tree | e081756f51f1c14ab7be0fe4c5851f68520cdc1d | |
| parent | 9e8103cf38f10a4240f0a796bbecdb635dbc74d4 (diff) | |
| download | brew-167dac74b75b8a6b5aae89ab2a7a0b739184cda3.tar.bz2 | |
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.
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index c7e61e379..c48671feb 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -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 |
