[no ci] fix timezone.sh to write complete timezone data string

pull/1122/head
gtxaspec 2023-11-07 09:41:26 -08:00
parent 7c53366db6
commit 16f4edc175
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