From af2636930e3b133bc75d319eb3708281aded355a Mon Sep 17 00:00:00 2001 From: Arlind Date: Sun, 23 Nov 2025 14:18:45 +0100 Subject: [PATCH] Update .gitea/workflows/test-skins.yml --- .gitea/workflows/test-skins.yml | 34 +++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/test-skins.yml b/.gitea/workflows/test-skins.yml index 0df4bef..4aac9bf 100644 --- a/.gitea/workflows/test-skins.yml +++ b/.gitea/workflows/test-skins.yml @@ -212,13 +212,18 @@ jobs: echo "" # Display all links grouped by skin - for skin in "${!skin_all_files[@]}"; do - echo "📄 $skin:" - echo "${skin_all_files[$skin]}" | while IFS= read -r line; do - [ -n "$line" ] && echo " $line" + if [ ${#skin_all_files[@]} -gt 0 ]; then + for skin in "${!skin_all_files[@]}"; do + echo "📄 $skin:" + # Save to temp file to avoid subshell issues with pipes + printf '%s\n' "${skin_all_files[$skin]}" > /tmp/skin_files_$$.txt + while IFS= read -r line; do + [ -n "$line" ] && echo " $line" + done < /tmp/skin_files_$$.txt + rm -f /tmp/skin_files_$$.txt + echo "" done - echo "" - done + fi echo "" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" @@ -311,13 +316,18 @@ jobs: echo "" # Display all images grouped by skin - for skin in "${!skin_all_images[@]}"; do - echo "🖼️ $skin:" - echo "${skin_all_images[$skin]}" | while IFS= read -r line; do - [ -n "$line" ] && echo " $line" + if [ ${#skin_all_images[@]} -gt 0 ]; then + for skin in "${!skin_all_images[@]}"; do + echo "🖼️ $skin:" + # Save to temp file to avoid subshell issues with pipes + printf '%s\n' "${skin_all_images[$skin]}" > /tmp/skin_images_$$.txt + while IFS= read -r line; do + [ -n "$line" ] && echo " $line" + done < /tmp/skin_images_$$.txt + rm -f /tmp/skin_images_$$.txt + echo "" done - echo "" - done + fi # Don't fail the workflow for missing images, just warn exit 0