Ignore dotfiles and globs
This commit is contained in:
parent
b963ed2631
commit
95e73f65a7
|
|
@ -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()
|
timezone = input('Enter a valid timezone (examples: Europe/Stockholm, US/Eastern) or press enter to use UTC: ').strip()
|
||||||
if timezone == '':
|
if timezone == '':
|
||||||
timezone = 'UTC'
|
timezone = 'UTC'
|
||||||
if (pathlib.Path("/usr")/"share"/"zoneinfo"/timezone).exists():
|
if (pathlib.Path("/usr")/"share"/"zoneinfo"/timezone.strip('*.')).exists():
|
||||||
return timezone
|
return timezone
|
||||||
else:
|
else:
|
||||||
log(
|
log(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue