fix(pkg-cache): no | while read pipelines under pipefail (Shell-Checks) #32

Merged
jknapp merged 1 commits from fix/pkg-cache-shellcheck-pipefail into trunk 2026-10-21 23:48:22 +00:00
1 Commits
Author SHA1 Message Date
shadowdaoandClaude Opus 5.5 472fdcbc4d fix(pkg-cache): no | while read pipelines under pipefail
Shell-Checks' structural scan (scripts/tests/lsphp-info-probe.test.sh)
flagged two `cmd | while read` loops in pkg-cache-repos.sh restore.
Read the lists with mapfile from a process substitution instead, so
there is no pipeline. The test now passes locally (36/0), shellcheck is
clean, and the restore tests (new cache-referencing file removed,
leftover reference -> FATAL) behave as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 16:48:17 -07:00