Update version parsing

This commit is contained in:
CorpNewt 2018-09-25 23:24:26 -05:00 committed by GitHub
parent a1bbb4390b
commit c8f3951c1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,6 +238,8 @@ class gibMacOS:
print("{} not found".format(prod))
def get_for_version(self, vers):
if str(vers).startswith("10."):
vers = str(vers)[3:]
for p in self.mac_prods:
if p["version"] == vers:
self.download_prod(prod)
@ -267,4 +269,4 @@ if __name__ == '__main__':
exit()
while True:
g.main()
g.main()