Skip to content

Commit

Permalink
s!m: tear
Browse files Browse the repository at this point in the history
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
  • Loading branch information
nabijaczleweli committed May 29, 2021
1 parent 60fe438 commit a696095
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/mancheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ add_excl="$(awk '
print
}' $files)"

! mandoc -Tlint $files 2>&1 |
# Redirect to file instead of 2>&1ing because mandoc flushes inconsistently(?) which tears lines
# https://github.com/openzfs/zfs/pull/12129/checks?check_run_id=2701608671#step:5:3
etmp="$(mktemp)"
! { mandoc -Tlint $files 2>"$etmp"; cat "$etmp"; rm -f "$etmp"; } |
grep -vE -e 'mandoc: outdated mandoc.db' -e 'STYLE: referenced manual not found' $add_excl >&2

0 comments on commit a696095

Please sign in to comment.