mirror of https://github.com/OpenIPC/firmware.git
[no ci] fix timezone.sh to write complete timezone data string (#1122)
Co-authored-by: Signor Pellegrino <68112357+FlyRouter@users.noreply.github.com>pull/1124/head
parent
90a58568a2
commit
25a2ea5d1f
|
@ -26,7 +26,7 @@ if [ -z "$matching_line" ]; then
|
|||
fi
|
||||
|
||||
# Extract the value associated with the timezone
|
||||
value=$(echo "$matching_line" | awk -F',' '{print $2}' | awk -F':' '{print $2}' | tr -d "'}")
|
||||
value=$(echo "$matching_line" | sed "s/^.*v:'\([^']*\)'.*$/\1/")
|
||||
|
||||
# Write the TZ file first
|
||||
echo $value > /etc/TZ
|
||||
|
|
Loading…
Reference in New Issue