Simplified ninite section

This commit is contained in:
2Shirt 2019-11-16 14:56:42 -07:00
parent b9e99ac4d8
commit 11401513e2
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -361,16 +361,14 @@ def install_ninite_bundle(
# Main selections
main_selections = []
if base:
if global_vars['OS']['Version'] in ('8', '8.1', '10'):
if base and standard:
main_selections.append('base-standard')
elif base:
main_selections.append('base')
else:
main_selections.append('base7')
if standard:
if global_vars['OS']['Version'] in ('8', '8.1', '10'):
elif standard:
main_selections.append('standard')
else:
main_selections.append('standard7')
if global_vars['OS']['Version'] not in ('8', '8.1', '10'):
main_selections = [f'{s}7' for s in main_selections]
if main_selections:
# Only run if base and/or standard are enabled
cmd = r'{}\Installers\Extras\Bundles\{}.exe'.format(