Avoid crash when no selections are enabled

This commit is contained in:
2Shirt 2019-05-12 15:37:38 -06:00
parent c1005f6212
commit 1b67a4293d
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -338,11 +338,13 @@ def install_ninite_bundle(
main_selections.append('standard')
else:
main_selections.append('standard7')
cmd = r'{}\Installers\Extras\Bundles\{}.exe'.format(
global_vars['BaseDir'],
'-'.join(main_selections),
)
popen_objects.append(popen_program([cmd]))
if main_selections:
# Only run if base and/or standard are enabled
cmd = r'{}\Installers\Extras\Bundles\{}.exe'.format(
global_vars['BaseDir'],
'-'.join(main_selections),
)
popen_objects.append(popen_program([cmd]))
# Extra selections
extra_selections = {}