fix set_timezone dialog (wrong exitcode)

merge-requests/273/head
Bernhard Landauer 8 years ago
parent 4b8f6f53e3
commit 87167194d8

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

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

Loading…
Cancel
Save