generated from osc/skins-template
remove debug
All checks were successful
CI/CD Pipeline / Full CI/CD Pipeline (push) Successful in 3m46s
All checks were successful
CI/CD Pipeline / Full CI/CD Pipeline (push) Successful in 3m46s
This commit is contained in:
@@ -621,8 +621,6 @@ jobs:
|
||||
- name: Generate README
|
||||
shell: bash
|
||||
run: |
|
||||
set -x
|
||||
|
||||
echo "Generating README index…"
|
||||
|
||||
sanitize_filename() {
|
||||
@@ -670,16 +668,14 @@ jobs:
|
||||
|
||||
declare -A ordered
|
||||
while IFS= read -r skin; do
|
||||
echo "Processing ordered skin: $skin"
|
||||
ordered["$skin"]=1
|
||||
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)
|
||||
skin_header="$skin"
|
||||
|
||||
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)
|
||||
if [ -n "$line" ]; then
|
||||
val="${line#*:}"
|
||||
@@ -712,13 +708,10 @@ jobs:
|
||||
echo "" >> "$README_PATH"
|
||||
done < order.txt
|
||||
|
||||
echo "Adding extra skins not in order.json..."
|
||||
|
||||
for dir in "$DANSER_SKINS_DIR"/*; do
|
||||
[ -d "$dir" ] || continue
|
||||
skin="$(basename "$dir")"
|
||||
[[ -n "${ordered[$skin]}" ]] && continue
|
||||
echo "Processing extra skin: $skin"
|
||||
|
||||
ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1 || true)
|
||||
skin_header="$skin"
|
||||
|
||||
Reference in New Issue
Block a user