Don't change default time zone on user input
This commit is contained in:
@@ -17,12 +17,10 @@ while
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$input" ]]; then
|
|
||||||
timezone="$input"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]; then
|
if [[ ! -f "/usr/share/zoneinfo/${timezone}" ]]; then
|
||||||
echoerr "[ERROR] The selected time zone does not exist"
|
echoerr "[ERROR] The selected time zone does not exist"
|
||||||
|
else
|
||||||
|
timezone="$input"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ ! -f "/usr/share/zoneinfo/${timezone}" ]]
|
[[ ! -f "/usr/share/zoneinfo/${timezone}" ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user