Doing simple replacement to swap , and . for Finnish format
This commit is contained in:
parent
b30fa258d0
commit
9180a03af9
1 changed files with 8 additions and 1 deletions
|
@ -25,4 +25,11 @@ if [[ $DATA == *"null"* ]]; then
|
|||
exit
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue