mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
--os flag now treats 10.x or 11+ as major versions
This commit is contained in:
parent
f18e98aebc
commit
202b59d7f2
@ -949,8 +949,10 @@ def main():
|
||||
|
||||
# skip if an OS is selected and it does not match
|
||||
if args.os:
|
||||
major = product_info[product_id]["version"].split(".", 2)[:2]
|
||||
os_version = ".".join(major)
|
||||
os_version = product_info[product_id]["version"].split(".")[0]
|
||||
if int(os_version) == 10:
|
||||
major = product_info[product_id]["version"].split(".", 2)[:2]
|
||||
os_version = ".".join(major)
|
||||
if args.os != os_version:
|
||||
continue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user