mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-08 07:37:48 +02:00
Following up on the -L fix: find -L can now traverse symlinks, but a broken symlink target or an unreadable directory makes find skip that entry and exit non-zero. Both scripts previously redirected find's stderr to /dev/null and never checked its exit status, so a scan could silently under-count skills with no indication anything was wrong. Capture find's exit status and stderr in both scripts; on failure, print a warning (with the underlying find error) to stderr while still emitting the best-effort results for whatever was found. Verified with a permission-denied skill directory: real BSD find exits 1 and reports "Permission denied" on stderr, now surfaced as an explicit warning instead of silently dropped. Addresses CodeRabbit review feedback on PR #2640. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FhDjpSfrbPpnpqT3CZBEX1