diff options
author | B. Watson <urchlay@slackware.uk> | 2023-08-24 02:16:42 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-08-24 02:16:42 -0400 |
commit | c2bdc750a21fb9708f9b7fceb700f300455e7a59 (patch) | |
tree | 7200d6b0e21dc20c2eb26758764cd7efe960a733 /sbopkglint.d/30-manpages.t.sh | |
parent | ef85e9d48fe1285bf6415f56ae023deac3f0d3ce (diff) | |
download | sbo-maintainer-tools-c2bdc750a21fb9708f9b7fceb700f300455e7a59.tar.gz |
sbopkglint: add -S option to file when using -z. will be needed for 15.1, does no harm on 15.0.
Diffstat (limited to 'sbopkglint.d/30-manpages.t.sh')
-rw-r--r-- | sbopkglint.d/30-manpages.t.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbopkglint.d/30-manpages.t.sh b/sbopkglint.d/30-manpages.t.sh index 7900003..6e1e267 100644 --- a/sbopkglint.d/30-manpages.t.sh +++ b/sbopkglint.d/30-manpages.t.sh @@ -41,7 +41,7 @@ check_gzipped_page() { # I have ~42,000 man pages on my dev box, file(1) fails to identify # 12 of them as troff, but adding the check for .T catches them all. - if [ "$( file -z -m /etc/file/magic/troff -L -b --mime-type "$f" )" != "text/troff" ]; then + if [ "$( file -zS -m /etc/file/magic/troff -L -b --mime-type "$f" )" != "text/troff" ]; then if ! zgrep -q '^\.T' "$f"; then NONTROFF+="$f " fi |