Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorDylan M. Taylor <dylan@dylanmtaylor.com>2021-04-22 19:36:32 -0400
committerGitHub <noreply@github.com>2021-04-22 19:36:32 -0400
commit95e73f65a7ea41c49ba2186124517d52dd962eb8 (patch)
tree3b658174b83c2013e305ab80f6f5cfd1ec56d3dc /archinstall/lib
parentb963ed2631d5d054ae438822183bc67038fdf0e5 (diff)
Ignore dotfiles and globs
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/user_interaction.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index dcb51e2a..b1437382 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -134,7 +134,7 @@ def ask_for_a_timezone():
timezone = input('Enter a valid timezone (examples: Europe/Stockholm, US/Eastern) or press enter to use UTC: ').strip()
if timezone == '':
timezone = 'UTC'
- if (pathlib.Path("/usr")/"share"/"zoneinfo"/timezone).exists():
+ if (pathlib.Path("/usr")/"share"/"zoneinfo"/timezone.strip('*.')).exists():
return timezone
else:
log(