Fix default time zone configuration
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user