Don't change default time zone on user input

This commit is contained in:
seajee
2024-08-09 02:53:27 +02:00
parent a785ba7d5d
commit 331e67879e

View File

@@ -17,12 +17,10 @@ while
continue
fi
if [[ -n "$input" ]]; then
timezone="$input"
fi
if [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]; then
echoerr "[ERROR] The selected time zone does not exist"
else
timezone="$input"
fi
[[ ! -f "/usr/share/zoneinfo/${timezone}" ]]