Removed time zone list feature

This commit is contained in:
seajee
2024-09-02 04:07:08 +02:00
parent de7d994851
commit 3f5b6ffc0f
2 changed files with 2 additions and 8 deletions

View File

@@ -9,14 +9,9 @@ echoerr() { cat <<< "$@" 1>&2; }
# Set the time zone
while
echo "[INFO] Time zone configuration. Type \"list\" to list time zones"
echo "[INFO] Time zone configuration."
read -p "Enter time zone (${timezone}): " input
if [[ "$input" == "list" ]]; then
awk '/^Z/ { print $2 }; /^L/ { print $3 }' /usr/share/zoneinfo/tzdata.zi | sort | less
continue
fi
if [[ ! -f "/usr/share/zoneinfo/${input}" ]]; then
echoerr "[ERROR] The selected time zone does not exist"
else