Error out with link to help if OS X < 10.5
This commit is contained in:
parent
c1568ab277
commit
9c5ad5c978
@ -62,7 +62,12 @@ def badlibs
|
||||
end
|
||||
end
|
||||
|
||||
def macos_version
|
||||
@macos_version ||= /(10\.\d+)(\.\d+)?/.match(`/usr/bin/sw_vers -productVersion`).captures.first.to_f
|
||||
end
|
||||
|
||||
####################################################################### script
|
||||
abort "MacOS too old, see: https://gist.github.com/1144389" if macos_version < 10.5
|
||||
abort "/usr/local/.git already exists!" unless Dir["/usr/local/.git/*"].empty?
|
||||
abort "Don't run this as root!" if Process.uid == 0
|
||||
abort <<-EOABORT unless `groups`.split.include? "staff"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user