diff options
| author | Max Howell | 2009-08-12 01:56:40 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-12 02:01:47 +0100 |
| commit | ed1fed4255daaf21d1c12baecef104e45e09a07a (patch) | |
| tree | 57220fb38170dfdd3e608a50573fca81dc764211 | |
| parent | 778dc398e60b5620f520e9da3a7d102a487c070b (diff) | |
| download | homebrew-ed1fed4255daaf21d1c12baecef104e45e09a07a.tar.bz2 | |
Error out if the host OS X is too old
| -rwxr-xr-x | bin/brew | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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'] |
