aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-31 15:20:13 -0700
committerAdam Vandenberg2010-04-06 08:22:29 -0700
commit89cae07aaa61e63909eb74046067f65e6b93cfbf (patch)
tree62e772fea5e9383134fb07b1e02df265c80ae0e9 /Library
parent75ad97a13e51bea7e56f92a2501933505e0994af (diff)
downloadhomebrew-89cae07aaa61e63909eb74046067f65e6b93cfbf.tar.bz2
Prefix check.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew_doctor.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index 649edf11b..7d4b5c836 100644
--- a/Library/Homebrew/brew_doctor.rb
+++ b/Library/Homebrew/brew_doctor.rb
@@ -59,6 +59,13 @@ def check_usr_bin_ruby
end
def check_homebrew_prefix
+ unless HOMEBREW_PREFIX.to_s == '/usr/local'
+ puts <<-EOS.undent
+ You can install Homebrew anywhere you want, but some brews may not work
+ correctly if you're not installing to /usr/local.
+
+ EOS
+ end
end
def brew_doctor
@@ -69,6 +76,7 @@ def brew_doctor
$stdout.reopen write
check_usr_bin_ruby
+ check_homebrew_prefix
check_for_stray_dylibs
check_gcc_versions
check_for_other_package_managers