Documentation/lint-manpages: bubble up errors
commit64239209743d4b07518786400290f58d1955eeb9
authorPatrick Steinhardt <ps@pks.im>
Thu, 6 Jun 2024 08:01:05 +0000 (6 10:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jun 2024 15:20:51 +0000 (6 08:20 -0700)
treef054c4cc628ec8b0f43f8ec38fbd3c7e03c77bbf
parent2dd100c5139c164ce4f86734daec522a8236982e
Documentation/lint-manpages: bubble up errors

The "lint-manpages.sh" script does not return an error in case any of
its checks fail. While this is faithful to the implementation that we
had as part of the "check-docs" target before the preceding commit, it
makes it hard to spot any violations of the rules via the corresponding
CI job, which will of course exit successfully, too.

Adapt the script to bubble up errors.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/lint-manpages.sh