fix: prevent set -e from killing build when grep finds no matches
This commit is contained in:
parent
04cbaf92da
commit
49c0a1f848
@ -19,7 +19,7 @@ chmod 755 installer/root/usr/libexec/cups/filter/kyofilter
|
|||||||
echo "Validating PPD..."
|
echo "Validating PPD..."
|
||||||
UNEXPECTED=$(cupstestppd installer/root/Library/Printers/PPDs/Contents/Resources/TA3505ci_AS.ppd 2>&1 \
|
UNEXPECTED=$(cupstestppd installer/root/Library/Printers/PPDs/Contents/Resources/TA3505ci_AS.ppd 2>&1 \
|
||||||
| grep "\*\*FAIL\*\*" \
|
| grep "\*\*FAIL\*\*" \
|
||||||
| grep -v "FeedingEdgeConstraint\|kyofilter\|Übersetzungsstring\|Übersetzung")
|
| grep -v "FeedingEdgeConstraint\|kyofilter\|Übersetzungsstring\|Übersetzung") || true
|
||||||
if [ -n "$UNEXPECTED" ]; then
|
if [ -n "$UNEXPECTED" ]; then
|
||||||
echo "ERROR: PPD has unexpected structural errors:" >&2
|
echo "ERROR: PPD has unexpected structural errors:" >&2
|
||||||
echo "$UNEXPECTED" >&2
|
echo "$UNEXPECTED" >&2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user