From c8407a74a3013f09495edba29705c7b481e46f19 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 17 Jun 2023 03:04:13 -0400 Subject: sbopkglint: spaces in filenames WIP #8. --- sbopkglint.d/pre-doinst.sh | 16 +++++----------- 1 file 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" -- cgit v1.2.3