aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-01-02 13:35:36 +0000
committerMike McQuaid2015-01-02 13:37:06 +0000
commitb2b1ad2f71093a1a3c1802edf947736a4cab0546 (patch)
tree23542ad094cdaf080798db5f69e4c7ef02a1dd9f /Library
parent952ffa22701df35a63ec3c7e78ad7dd0086b4bc5 (diff)
downloadhomebrew-b2b1ad2f71093a1a3c1802edf947736a4cab0546.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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb4
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