fix: prevent set -e from killing build when grep finds no matches

This commit is contained in:
Oliver Hofmann 2026-06-06 16:54:17 +02:00
parent 04cbaf92da
commit 49c0a1f848

View File

@ -19,7 +19,7 @@ chmod 755 installer/root/usr/libexec/cups/filter/kyofilter
echo "Validating PPD..."
UNEXPECTED=$(cupstestppd installer/root/Library/Printers/PPDs/Contents/Resources/TA3505ci_AS.ppd 2>&1 \
| grep "\*\*FAIL\*\*" \
| grep -v "FeedingEdgeConstraint\|kyofilter\|Übersetzungsstring\|Übersetzung")
| grep -v "FeedingEdgeConstraint\|kyofilter\|Übersetzungsstring\|Übersetzung") || true
if [ -n "$UNEXPECTED" ]; then
echo "ERROR: PPD has unexpected structural errors:" >&2
echo "$UNEXPECTED" >&2