diff --git a/.gitea/actions/discover-skins/action.yml b/.gitea/actions/discover-skins/action.yml index 08c8c80..40ac326 100644 --- a/.gitea/actions/discover-skins/action.yml +++ b/.gitea/actions/discover-skins/action.yml @@ -70,7 +70,11 @@ runs: elif [[ -n "$target_skins" ]]; then echo "→ Target skins specified. Using target_skins input…" - mapfile -t skins < <(echo "$target_skins" | jq -r '.[]') + # Use a temporary file to safely handle special characters + temp_target_file="/tmp/target_skins_$RANDOM.json" + printf '%s' "$target_skins" > "$temp_target_file" + mapfile -t skins < <(jq -r '.[]' "$temp_target_file") + rm -f "$temp_target_file" echo " ✓ Found ${#skins[@]} skin(s) from target_skins input" else