Doing simple replacement to swap , and . for Finnish format

This commit is contained in:
Siina Mashek 2024-03-03 15:39:19 +02:00
parent b30fa258d0
commit 9180a03af9

View file

@ -25,4 +25,11 @@ if [[ $DATA == *"null"* ]]; then
exit exit
fi fi
printf "${DESC:1:-1}, ${DATA[0]}°C (fl ${DATA[1]}°C)\n" r () {
echo $1 | sed 's/\./\,/'
}
w="$(r ${DATA[0]})"
fl="$(r ${DATA[1]})"
printf "${DESC:1:-1}, $w°C (fl $fl°C)\n"