From 331e67879ec9aba9127e864e236e0e8a7735410a Mon Sep 17 00:00:00 2001 From: seajee Date: Fri, 9 Aug 2024 02:53:27 +0200 Subject: [PATCH] Don't change default time zone on user input --- chroot.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chroot.sh b/chroot.sh index bff52ed..581abb0 100755 --- a/chroot.sh +++ b/chroot.sh @@ -17,12 +17,10 @@ while continue fi - if [[ -n "$input" ]]; then - timezone="$input" - fi - if [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]; then echoerr "[ERROR] The selected time zone does not exist" + else + timezone="$input" fi [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]