Avoid crash when no selections are enabled
This commit is contained in:
parent
c1005f6212
commit
1b67a4293d
1 changed files with 7 additions and 5 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue