Don't change default timezone on user input part 2

This commit is contained in:
seajee
2024-08-09 03:05:43 +02:00
parent f0c5e5dc2d
commit f0a2b7778d

View File

@@ -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"