From 25c4d1f0321532e33f979b810b0535059122e8b7 Mon Sep 17 00:00:00 2001 From: Rob N Date: Thu, 2 Mar 2023 04:38:31 +1100 Subject: mancheck: exclude dotfiles in man dir Its not uncommon for an editor to drop a hidden swap file in the dir while editing a file there. mancheck would find it and run mandoc on it, which would complain about its distinctly not-manpage format. A more correct solution might be to reconfigure the editor to not put swap files in the same dir, but its the default a lot of the time, and this is a very small change that gives a very nice quality-of-life improvement. Reviewed-by: Richard Yao Reviewed-by: Brian Behlendorf Signed-off-by: Rob Norris Closes #14549 --- scripts/mancheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/mancheck.sh b/scripts/mancheck.sh index 347b2e086..364ad1b76 100755 --- a/scripts/mancheck.sh +++ b/scripts/mancheck.sh @@ -27,7 +27,7 @@ fi IFS=" " -files="$(find "$@" -type f -name '*[1-9]*')" || exit 1 +files="$(find "$@" -type f -name '*[1-9]*' -not -name '.*')" || exit 1 add_excl="$(awk ' /^.\\" lint-ok:/ { -- cgit v1.2.3