fix set_timezone dialog (wrong exitcode)

This commit is contained in:
Bernhard Landauer 2017-02-27 12:39:39 +01:00
parent 4b8f6f53e3
commit 87167194d8
2 changed files with 2 additions and 3 deletions

View File

@ -159,7 +159,7 @@ _localeBody="Locales determine the languages displayed, time and date formats, e
# Set Timezone
_TimeZBody="\nThe time zone is used to correctly set your system clock."
_TimeSubZBody="\nSelect the city nearest to you."
_TimeZQ="\nSet Time Zone as"
_TimeZQ="\nSet Time Zone"
# Set Hardware Clock
_HwCBody="\nUTC is the universal time standard, and is recommended unless dual-booting with Windows."

View File

@ -75,8 +75,7 @@ set_timezone() {
SUBZONE=$(cat ${ANSWER})
DIALOG " $_ConfBseTimeHC " --yesno "\n$_TimeZQ ${ZONE}/${SUBZONE}?\n" 0 0
if (( $? != 0 )); then
if (( $? == 0 )); then
arch_chroot "ln -sf /usr/share/zoneinfo/${ZONE}/${SUBZONE} /etc/localtime" 2>$ERR
check_for_error "$FUNCNAME ${ZONE}/${SUBZONE}" $? config_base_menu
else