aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/install.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb
index b7de5df10..fcf35953f 100755
--- a/Library/Homebrew/install.rb
+++ b/Library/Homebrew/install.rb
@@ -53,6 +53,12 @@ end
def install f
show_summary_heading = false
+ paths = ENV['PATH'].split(':').map{ |p| File.expand_path p }
+ rootbin = (HOMEBREW_PREFIX+'bin').to_s
+ unless paths.include? rootbin
+ ENV.prepend 'PATH', rootbin, ':'
+ end
+
f.deps.uniq.each do |dep|
dep = Formula.factory dep
if dep.keg_only?
@@ -149,7 +155,6 @@ def install f
show_summary_heading = true
else
# warn the user if stuff was installed outside of their PATH
- paths = ENV['PATH'].split(':').map{ |p| File.expand_path p }
[f.bin, f.sbin].each do |bin|
if bin.directory?
rootbin = (HOMEBREW_PREFIX/bin.basename).to_s