aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-08-12 01:56:40 +0100
committerMax Howell2009-08-12 02:01:47 +0100
commited1fed4255daaf21d1c12baecef104e45e09a07a (patch)
tree57220fb38170dfdd3e608a50573fca81dc764211
parent778dc398e60b5620f520e9da3a7d102a487c070b (diff)
downloadhomebrew-ed1fed4255daaf21d1c12baecef104e45e09a07a.tar.bz2
Error out if the host OS X is too old
-rwxr-xr-xbin/brew5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 30742d5ea..06c5a2cba 100755
--- a/bin/brew
+++ b/bin/brew
@@ -21,6 +21,11 @@ This is not currently supported. Voice your support for this feature at:
troba
end
+if `sw_vers -productVersion` =~ /10\.(\d)\.(\d+)/ and $1.to_i < 5
+ onoe "Homebrew requires Leopard or higher"
+ abort "But thanks for your interest anyway!"
+end
+
# Pathname often throws if CWD doesn't exist
Dir.chdir '/' unless File.directory? ENV['PWD']