only show real regions

This commit is contained in:
Tobias Powalowski 2022-11-26 13:42:11 +01:00
parent 93d9cad2d3
commit 9adc2d16dc

View file

@ -57,7 +57,7 @@ dotimezone () {
SET_ZONE=""
while ! [[ "${SET_ZONE}" = "1" ]]; do
REGIONS=""
for i in $(timedatectl --no-pager list-timezones | cut -d '/' -f 1 | grep -v "[A-Z]$" | sort -u); do
for i in $(timedatectl --no-pager list-timezones | cut -d '/' -f 1 | grep -v "[A-Z]$" -v "[0-9]$" -v "Zulu" -v "-" | sort -u); do
REGIONS="${REGIONS} ${i} -"
done
#shellcheck disable=SC2086