aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbopkglint.d/pre-doinst.sh16
1 files changed, 5 insertions, 11 deletions
diff --git a/sbopkglint.d/pre-doinst.sh b/sbopkglint.d/pre-doinst.sh
index e00163a..5beb6a2 100644
--- a/sbopkglint.d/pre-doinst.sh
+++ b/sbopkglint.d/pre-doinst.sh
@@ -26,21 +26,15 @@ var/cache/fontconfig/CACHEDIR.TAG \
var/cache/man/usr-man/CACHEDIR.TAG"
for i in $badfiles; do
- if [ -e "$i" ]; then
- warn "package contains forbidden file: $i"
- fi
+ [ -e "$i" ] && warn "package contains forbidden file: $i"
done
if [ -d usr/share/fonts ]; then
- badfontstuff="$( find usr/share/fonts -name 'fonts.*' )"
- if [ -n "$badfontstuff" ]; then
- warn "package contains forbidden file(s): $badfontstuff"
- fi
+ find_warnfiles "package contains forbidden file(s):" \
+ usr/share/fonts -name 'fonts.*'
fi
-badlinks="$( find -P . -type l )"
-if [ -n "$badlinks" ]; then
- warn "package contains actual symlinks: $badlinks"
-fi
+find_warnfiles "package contains actual symlinks:" \
+ find -P . -type l
[ -f install/slack-desc ] || warn "required file install/slack-desc is missing"