fix(lsphp-apt-upgrade): no early-exit readers under pipefail #25

Merged
jknapp merged 1 commits from fix/lsphp-upgrade-pipefail into trunk 2026-10-21 14:07:08 +00:00
Owner

Fixes the Shell-Checks failure from #24: two pipelines into early-exit readers under pipefail (could randomly fail an lsphp build). Read into variables, match in shell.

Tested: lsphp-info-probe.test.sh 36/36, shellcheck clean, script run inside litespeedtech/openlitespeed:1.8.4-lsphp85 upgrades 8.5.0 -> 8.5.11 OK.

🤖 Generated with Claude Code

Fixes the Shell-Checks failure from #24: two pipelines into early-exit readers under pipefail (could randomly fail an lsphp build). Read into variables, match in shell. Tested: lsphp-info-probe.test.sh 36/36, shellcheck clean, script run inside litespeedtech/openlitespeed:1.8.4-lsphp85 upgrades 8.5.0 -> 8.5.11 OK. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jknapp added 1 commit 2026-10-21 14:07:06 +00:00
apt-cache madison | grep -q and apt-cache policy | awk '...exit' can SIGPIPE
the writer under pipefail and report lsphp missing when it is there. Read
each output into a variable and match in the shell. Fixes the Shell-Checks
failure on trunk (lsphp-info-probe.test.sh structural scan).

Tested: lsphp-info-probe.test.sh 36/36, shellcheck clean, and the script run
in litespeedtech/openlitespeed:1.8.4-lsphp85 upgrades 8.5.0 -> 8.5.11 OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jknapp merged commit cfde82ae44 into trunk 2026-10-21 14:07:08 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cloud-hosting-platform/cloud-apache-container#25