From d2623ec38d6245cdb1e119a47ac705653f67795e Mon Sep 17 00:00:00 2001 From: seajee Date: Mon, 2 Sep 2024 05:01:28 +0200 Subject: [PATCH] Fix default time zone configuration --- chroot.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chroot.sh b/chroot.sh index 737b7cc..905f82d 100755 --- a/chroot.sh +++ b/chroot.sh @@ -12,6 +12,10 @@ while echo "[INFO] Time zone configuration." read -p "Enter time zone (${timezone}): " input + if [[ -n "$input" ]]; then + input="$timezone" + fi + if [[ ! -f "/usr/share/zoneinfo/${input}" ]]; then echoerr "[ERROR] The selected time zone does not exist" else