Added newlines between each meal
This commit is contained in:
parent
72544de2c2
commit
e32d6b2c56
19
zradylko.sh
19
zradylko.sh
|
@ -43,15 +43,18 @@ get_zradylko() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
main_course_with_newlines=$(echo "$main_course" | sed 's/ Kč/ Kč\\n/g')
|
||||||
|
weekly_course_with_newlines=$(echo "$main_course" | sed 's/ Kč/ Kč\\n/g')
|
||||||
|
|
||||||
# Create a JSON object with the desired fields
|
# Create a JSON object with the desired fields
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
output=''${output}'
|
output=''${output}'
|
||||||
{
|
{
|
||||||
"title": "**'"$commonName"'**",
|
"title": "**'"$commonName"'**",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "'"$restaurant_name"'",
|
"name": "'"$restaurant_name"'",
|
||||||
"icon_url": "'"${icon}"'"
|
"icon_url": "'"${icon}"'"
|
||||||
},
|
},
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "Polevka",
|
"name": "Polevka",
|
||||||
|
@ -59,11 +62,11 @@ get_zradylko() {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Hlavni chod",
|
"name": "Hlavni chod",
|
||||||
"value": "'"$main_course"'"
|
"value": "'"$main_course_with_newlines"'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Tydenni nabidka",
|
"name": "Tydenni nabidka",
|
||||||
"value": "'"$weekly_course"'"
|
"value": "'"$weekly_course_with_newlines"'"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},'
|
},'
|
||||||
|
@ -80,9 +83,9 @@ get_habibi() {
|
||||||
{
|
{
|
||||||
"title": "**'"$commonName"'**",
|
"title": "**'"$commonName"'**",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "'"$commonName"'",
|
"name": "'"$commonName"'",
|
||||||
"icon_url": "'"${icon}"'"
|
"icon_url": "'"${icon}"'"
|
||||||
},
|
},
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"name": "Menu",
|
"name": "Menu",
|
||||||
|
|
Loading…
Reference in New Issue