mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 17:38:17 +01:00
Update daily_README.yaml
This commit is contained in:
7
.github/workflows/daily_README.yaml
vendored
7
.github/workflows/daily_README.yaml
vendored
@@ -50,18 +50,17 @@ jobs:
|
||||
sed -i "/**ADDONS_LIST%%/d" README2.md
|
||||
|
||||
# Sort folders by addon name
|
||||
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
||||
if [ -f "$f"/config.json ]; then
|
||||
|
||||
for f in $(dirname $(find -- */config.json -maxdepth 0 -type d | sort -r )); do
|
||||
NAME=$(jq -r '.name' "$f"/config.json)
|
||||
if [[ "$f" != "$NAME" ]]; then
|
||||
echo "$f" > "$f"/oldname
|
||||
mv "$f" "$NAME"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Populate template
|
||||
find -- * -maxdepth 0 -type d | sort -r | while read -r f; do
|
||||
for f in $(dirname $(find -- */config.json -maxdepth 0 -type d | sort -r )); do
|
||||
# $f is an addon directory
|
||||
if [ -f "$f/config.json" ]; then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user