Fix default time zone configuration

This commit is contained in:
seajee
2024-09-02 05:01:28 +02:00
parent 3f5b6ffc0f
commit d2623ec38d

View File

@@ -12,6 +12,10 @@ while
echo "[INFO] Time zone configuration." echo "[INFO] Time zone configuration."
read -p "Enter time zone (${timezone}): " input read -p "Enter time zone (${timezone}): " input
if [[ -n "$input" ]]; then
input="$timezone"
fi
if [[ ! -f "/usr/share/zoneinfo/${input}" ]]; then if [[ ! -f "/usr/share/zoneinfo/${input}" ]]; then
echoerr "[ERROR] The selected time zone does not exist" echoerr "[ERROR] The selected time zone does not exist"
else else