remove debug
All checks were successful
CI/CD Pipeline / Full CI/CD Pipeline (push) Successful in 3m46s

This commit is contained in:
2025-06-18 19:30:59 +02:00
parent 26348c0680
commit 7d4656aec2

View File

@@ -621,8 +621,6 @@ jobs:
- name: Generate README - name: Generate README
shell: bash shell: bash
run: | run: |
set -x
echo "Generating README index…" echo "Generating README index…"
sanitize_filename() { sanitize_filename() {
@@ -670,16 +668,14 @@ jobs:
declare -A ordered declare -A ordered
while IFS= read -r skin; do while IFS= read -r skin; do
echo "Processing ordered skin: $skin"
ordered["$skin"]=1 ordered["$skin"]=1
dir="$DANSER_SKINS_DIR/$skin" dir="$DANSER_SKINS_DIR/$skin"
[ ! -d "$dir" ] && echo "⚠️ Directory not found: $dir" && continue [ ! -d "$dir" ] && continue
ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1 || true) ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1 || true)
skin_header="$skin" skin_header="$skin"
if [ -f "$ini_file" ]; then if [ -f "$ini_file" ]; then
# Robust grep: match Name: even if no leading space, ignore encoding issues
line=$(grep -a -i '^Name[[:space:]]*:' "$ini_file" | head -n1 || true) line=$(grep -a -i '^Name[[:space:]]*:' "$ini_file" | head -n1 || true)
if [ -n "$line" ]; then if [ -n "$line" ]; then
val="${line#*:}" val="${line#*:}"
@@ -712,13 +708,10 @@ jobs:
echo "" >> "$README_PATH" echo "" >> "$README_PATH"
done < order.txt done < order.txt
echo "Adding extra skins not in order.json..."
for dir in "$DANSER_SKINS_DIR"/*; do for dir in "$DANSER_SKINS_DIR"/*; do
[ -d "$dir" ] || continue [ -d "$dir" ] || continue
skin="$(basename "$dir")" skin="$(basename "$dir")"
[[ -n "${ordered[$skin]}" ]] && continue [[ -n "${ordered[$skin]}" ]] && continue
echo "Processing extra skin: $skin"
ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1 || true) ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1 || true)
skin_header="$skin" skin_header="$skin"