From f0a2b7778d2b3fd8caabefedcbbcaf0e57c42f64 Mon Sep 17 00:00:00 2001 From: seajee Date: Fri, 9 Aug 2024 03:05:43 +0200 Subject: [PATCH] Don't change default timezone on user input part 2 --- chroot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chroot.sh b/chroot.sh index 581abb0..de46583 100755 --- a/chroot.sh +++ b/chroot.sh @@ -17,13 +17,13 @@ while continue fi - if [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]; then + if [[ ! -f "/usr/share/zoneinfo/${input}" ]]; then echoerr "[ERROR] The selected time zone does not exist" else timezone="$input" fi - [[ ! -f "/usr/share/zoneinfo/${timezone}" ]] + [[ ! -f "/usr/share/zoneinfo/${input}" ]] do true; done echo "[INFO] Setting ${timezone} as the time zone"