Error out if the host OS X is too old

This commit is contained in:
Max Howell 2009-08-12 01:56:40 +01:00
parent 7e723c107b
commit 0fb03b5516

View File

@ -21,6 +21,11 @@ This is not currently supported. Voice your support for this feature at:
troba troba
end 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 # Pathname often throws if CWD doesn't exist
Dir.chdir '/' unless File.directory? ENV['PWD'] Dir.chdir '/' unless File.directory? ENV['PWD']