[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
gtxaspec 2023-11-08 00:20:03 -08:00 committed by GitHub
parent 90a58568a2
commit 25a2ea5d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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