aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbopkglint.d/30-manpages.t.sh2
-rw-r--r--sbopkglint.d/50-icons.t.sh2
2 files changed, 2 insertions, 2 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
diff --git a/sbopkglint.d/50-icons.t.sh b/sbopkglint.d/50-icons.t.sh
index c84e645..2296e9d 100644
--- a/sbopkglint.d/50-icons.t.sh
+++ b/sbopkglint.d/50-icons.t.sh
@@ -37,7 +37,7 @@ check_image() {
[ "$bn" = "theme" -o "$bn" = "icon-theme.cache" -o "$bn" = "index.theme" ] && return
- mime="$( file -L -z -b --mime-type "$f" )"
+ mime="$( file -L -zS -b --mime-type "$f" )"
case "$mime" in
image/*) ;; # OK
*) ( echo -n "[$mime]: " ; ls -bld "$f" ) >> .nonimages.$$; return ;;