summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-03-29 22:44:52 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-03-29 22:44:52 +0200
commit91e7648aa72e429c8f2b727823d38c4009182208 (patch)
treec5c47273d451d618fe5c40351d7cd8a87ad64d0e
parentff1bc0cd6060d0a23911f1ef25633f706a9af619 (diff)
fix for hanging timezone dialogs
-rw-r--r--src/core/libs/lib-ui.sh4
1 files changed, 2 insertions, 2 deletions
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