yelp-check validate does not return a proper exit code on errors
@mbiebl
Submitted by Michael Biebl Link to original bug (#779615)
Description
I've modified a document to contain an error:
$ yelp-check validate ./C
./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page
</page>
^
./C/image-preview.page:60: parser error : Premature end of data in tag page line 2
^
unable to parse ./C/image-preview.page
./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page
</page>
^
./C/image-preview.page:60: parser error : Premature end of data in tag page line 2
^
unable to parse ./C/image-preview.page
warning: failed to load external entity "/tmp/yelp-vC0b6lsc/.rng"
Relax-NG parser error : xmlRelaxNGParse: could not load /tmp/yelp-vC0b6lsc/.rng
Relax-NG schema /tmp/yelp-vC0b6lsc/.rng failed to compile
./C/image-preview.page:59: parser error : Opening and ending tag mismatch: info line 6 and page
</page>
^
./C/image-preview.page:60: parser error : Premature end of data in tag page line 2
^ $ echo $? 0
As you can see, the return code is 0, which usually signals success. This should be changed to return a non-zero return code on errors.
Version: 3.18.x