From ac8393645c49d0c11170566d7a1650b2da906567 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 18 Nov 2019 17:11:45 +0100 Subject: Don't show drives unless we have some --- archinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall.py b/archinstall.py index 26de5215..040b29b5 100644 --- a/archinstall.py +++ b/archinstall.py @@ -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): -- cgit v1.2.3-70-g09d2