Don't show drives unless we have some

This commit is contained in:
Anton Hvornum 2019-11-18 17:11:45 +01:00
parent f679b49070
commit ac8393645c
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ def setup_args_defaults(args, interactive=True):
if not 'ignore-rerun' in args: args['ignore-rerun'] = False
if not 'localtime' in args: args['localtime'] = 'Europe/Stockholm' if args['country'] == 'SE' else 'GMT+0' # TODO: Arbitrary for now
if not 'drive' in args:
if interactive:
if interactive and len(harddrives):
drives = sorted(list(harddrives.keys()))
if len(drives) > 1 and 'force' not in args and ('default' in args and 'first-drive' not in args):
for index, drive in enumerate(drives):