mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
Actually hanged it to `build_info[0]`.
This commit is contained in:
parent
9e35978b72
commit
168bd5b0a1
@ -679,7 +679,7 @@ def main():
|
|||||||
|
|
||||||
elif args.current:
|
elif args.current:
|
||||||
# automatically select matching build ID if current option used
|
# automatically select matching build ID if current option used
|
||||||
if os_build == product_info[product_id]['BUILD']:
|
if build_info[0] == product_info[product_id]['BUILD']:
|
||||||
answer = index+1
|
answer = index+1
|
||||||
break
|
break
|
||||||
|
|
||||||
@ -715,10 +715,10 @@ def main():
|
|||||||
print ('\n'
|
print ('\n'
|
||||||
'Build %s is not available. '
|
'Build %s is not available. '
|
||||||
'Run again without --current argument '
|
'Run again without --current argument '
|
||||||
'to select a valid build to download.\n' % os_build)
|
'to select a valid build to download.\n' % build_info[0])
|
||||||
exit(0)
|
exit(0)
|
||||||
else:
|
else:
|
||||||
print '\nBuild %s available. Downloading #%s...\n' % (os_build, answer)
|
print '\nBuild %s available. Downloading #%s...\n' % (build_info[0], answer)
|
||||||
elif args.version:
|
elif args.version:
|
||||||
try:
|
try:
|
||||||
answer
|
answer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user