mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-18 02:06:26 +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
|
# skip if an OS is selected and it does not match
|
||||||
if args.os:
|
if args.os:
|
||||||
major = product_info[product_id]["version"].split(".", 2)[:2]
|
os_version = product_info[product_id]["version"].split(".")[0]
|
||||||
os_version = ".".join(major)
|
if int(os_version) == 10:
|
||||||
|
major = product_info[product_id]["version"].split(".", 2)[:2]
|
||||||
|
os_version = ".".join(major)
|
||||||
if args.os != os_version:
|
if args.os != os_version:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user