Only send the major version of OS X

This commit is contained in:
Peter Eckersley 2015-11-10 16:47:11 -08:00
parent 8b9a271900
commit 7dcf8a32f4

View file

@ -222,6 +222,7 @@ def get_os_info():
["sw_vers", "-productVersion"],
stdout=subprocess.PIPE
).communicate()[0]
os_ver = os_ver.partition(".")[0]
elif os_type.startswith('freebsd'):
# eg "9.3-RC3-p1"
os_ver = os_ver.partition("-")[0]