index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2020-11-11 21:37:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 21:37:40 +0000 |
commit | be8ac2558ef31bbd135ad5cea6c7f4c562061d7a (patch) | |
tree | 3ca98a8fc779aea829568b5d9b30b04532e1da1e /archinstall/lib/user_interaction.py | |
parent | 9a1199333a0a00b74f884dfee1b324500d4b8060 (diff) | |
parent | 4dd20ae4d4abeed916c0d1271a637dcb3c80b9a6 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction.py | 4 |
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index 29dfaed2..fdbabe96 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -24,7 +24,9 @@ def generic_select(options, input_text="Select one of the above by index or abso print(f"{index}: {option}") selected_option = input(input_text) - if selected_option.isdigit(): + if len(selected_option.strip()) <= 0: + return None + elif selected_option.isdigit(): selected_option = options[int(selected_option)] elif selected_option in options: pass # We gave a correct absolute value |