Skip to content

Commit

Permalink
Error out if the host OS X is too old
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Aug 12, 2009
1 parent 778dc39 commit ed1fed4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/brew
Expand Up @@ -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']

Expand Down

0 comments on commit ed1fed4

Please sign in to comment.