From 91e7648aa72e429c8f2b727823d38c4009182208 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 29 Mar 2009 22:44:52 +0200 Subject: fix for hanging timezone dialogs --- src/core/libs/lib-ui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index 50d087a..c3ac12a 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -423,7 +423,7 @@ _dia_ask_timezone () { REGIONS="" SET_ZONE="" - for i in $(grep ^[A-Z] /usr/share/zoneinfo/zone.tab | cut -f 3 | sed -e 's#/.*##g'| sort -u); do + for i in $(grep '^[A-Z]' /usr/share/zoneinfo/zone.tab | cut -f 3 | sed -e 's#/.*##g'| sort -u); do REGIONS="$REGIONS $i -" done while [ "$SET_ZONE" != "1" ]; do @@ -432,7 +432,7 @@ _dia_ask_timezone () region=ANSWER_OPTION if [ $? -eq 0 ]; then ZONES="" - for i in $(grep ^[A-Z] /usr/share/zoneinfo/zone.tab | grep $region/ | cut -f 3 | sed -e "s#$region/##g"| sort -u); do + for i in $(grep '^[A-Z]' /usr/share/zoneinfo/zone.tab | grep $region/ | cut -f 3 | sed -e "s#$region/##g"| sort -u); do ZONES="$ZONES $i -" done ask_option no "Please select a timezone" '' required $ZONES -- cgit v1.2.3-54-g00ecf