diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-03-29 22:56:20 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-03-29 22:56:20 +0200 |
commit | 238c38a9ac14e0bc2f891a51b8a2f1a3bbc66aa3 (patch) | |
tree | be9f47756644089df6c8059282d0e09a98f7c0b9 /src/core | |
parent | aed471dbb18874a2fd3cbc8a9193cda4211ef027 (diff) |
return condition fix
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/libs/lib-ui.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index 22a9033..d3c3948 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -422,12 +422,10 @@ _dia_ask_string () _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 REGIONS="$REGIONS $i -" done while true; do - SET_REGION="" ask_option no "Please select a region" '' required $REGIONS region=$ANSWER_OPTION if [ $? -eq 0 ]; then @@ -437,7 +435,7 @@ _dia_ask_timezone () done ask_option no "Please select a timezone" '' required $ZONES zone=$ANSWER_OPTION - [ $? -gt 0 ] && ANSWER_TIMEZONE="$region/$zone" && return + [ $? -eq 0 ] && ANSWER_TIMEZONE="$region/$zone" && return fi done } |