From 87167194d86fcb86c210b5becdea7af3f8135c0e Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Mon, 27 Feb 2017 12:39:39 +0100 Subject: [PATCH] fix set_timezone dialog (wrong exitcode) --- data/translations/english.trans | 2 +- lib/util-base.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/translations/english.trans b/data/translations/english.trans index 57a75a8..3d77548 100644 --- a/data/translations/english.trans +++ b/data/translations/english.trans @@ -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." diff --git a/lib/util-base.sh b/lib/util-base.sh index 3605eae..4badbfc 100644 --- a/lib/util-base.sh +++ b/lib/util-base.sh @@ -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