]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mancheck: exclude dotfiles in man dir
authorRob N <robn@despairlabs.com>
Wed, 1 Mar 2023 17:38:31 +0000 (04:38 +1100)
committerGitHub <noreply@github.com>
Wed, 1 Mar 2023 17:38:31 +0000 (09:38 -0800)
commit25c4d1f0321532e33f979b810b0535059122e8b7
treeddf8c81f2c67bbfcfc4be362a6c0cfbbb52b3477
parent4fe9cc54374479652aed431f54c44bb209f6635f
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 <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #14549
scripts/mancheck.sh