Commit c30c28c
Fix SIGPIPE in dpkg-deb content checks
With set -o pipefail, grep -q exits immediately on first match,
causing dpkg-deb to receive SIGPIPE and return non-zero. This made
the pipeline fail even when the pattern was found. The effect was
position-dependent: patterns matching early entries (usr/bin/) always
failed, while later entries (usr/share/man/) sometimes succeeded
because dpkg-deb finished writing before grep exited.
Fix by using grep >/dev/null instead of grep -q, which keeps reading
the pipe until dpkg-deb finishes naturally.
Also remove debug output from previous commits.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5545f74 commit c30c28c
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 127 | | |
133 | 128 | | |
134 | 129 | | |
| |||
0 commit comments