Update daily_README.yaml

This commit is contained in:
Alexandre
2022-04-22 17:49:00 +02:00
committed by GitHub
parent 13f456c966
commit 29f99da073

View File

@@ -47,8 +47,10 @@ jobs:
DESCRIPTION=$(jq -r '.description' "$f/config.json")
# Get icon
if [ "$(jq '.panel_icon' "$f/config.json")" ]; then
ICON="![image](https://api.iconify.design/mdi/$(jq '.panel_icon' "$f/config.json").svg)"
if [ "$(jq '.panel_icon' "$f/config.json")" != null ]; then
ICON="$(jq -r '.panel_icon' "$f/config.json")"
ICON=${ICON#*:}
ICON="![image](https://api.iconify.design/mdi/$ICON.svg)"
else
ICON=""
fi