aboutsummaryrefslogtreecommitdiffstats
path: root/bin/brew
diff options
context:
space:
mode:
authorMax Howell2009-09-23 16:41:47 +0100
committerMax Howell2009-09-24 18:26:24 +0100
commit0836244a2318a24253697e811a5e489b0ed22bb2 (patch)
tree4438aefb162e9f6206d7dfbf7de0e23644f06e2f /bin/brew
parent419cf71e9ee0d9efc7d960aba31d350a9dc8c393 (diff)
downloadhomebrew-0836244a2318a24253697e811a5e489b0ed22bb2.tar.bz2
Remove Fink and Macports from the PATH earlier
References issue #48
Diffstat (limited to 'bin/brew')
-rwxr-xr-xbin/brew6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 31e540848..5664ee5a7 100755
--- a/bin/brew
+++ b/bin/brew
@@ -12,6 +12,12 @@ if %w[/ /usr].include? HOMEBREW_PREFIX.to_s then abort <<-EOS
EOS
end
if `sw_vers -productVersion` =~ /10\.(\d)\.(\d+)/ and $1.to_i < 5
+
+# remove MacPorts and Fink from the PATH, this prevents issues like:
+# http://github.com/mxcl/homebrew/issues/#issue/13
+# http://github.com/mxcl/homebrew/issues/#issue/48
+fix_PATH
+
onoe "Homebrew requires Leopard or higher"
abort "But thanks for your interest anyway!"
end