Error out if the host OS X is too old
This commit is contained in:
parent
7e723c107b
commit
0fb03b5516
5
bin/brew
5
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']
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user