aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-09-23 16:41:47 +0100
committerMax Howell2009-09-24 18:26:24 +0100
commit034fc40ae122f0d99ea0793264ed74c986866327 (patch)
tree25de936d275bba89ab781c509d82fd27df8e0747 /bin
parenta03d13088f7e5f6dfe1d4d6518d2399172d40a2f (diff)
downloadbrew-034fc40ae122f0d99ea0793264ed74c986866327.tar.bz2
Remove Fink and Macports from the PATH earlier
References issue Homebrew/homebrew#48
Diffstat (limited to 'bin')
-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