aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-06-16 23:00:32 -0400
committerB. Watson <urchlay@slackware.uk>2023-06-16 23:00:32 -0400
commit7e88e51ed292cdca94cd5f1ab1c00483565358b7 (patch)
tree83b870c0e2d54978758393012c0d11c09a9efc21
parent99020590bf958d88fa4b779ee8f03a86a951a4a9 (diff)
downloadsbo-maintainer-tools-7e88e51ed292cdca94cd5f1ab1c00483565358b7.tar.gz
sbopkglint: spaces in filenames WIP #5.
-rw-r--r--sbopkglint.d/40-newconfig.t.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/sbopkglint.d/40-newconfig.t.sh b/sbopkglint.d/40-newconfig.t.sh
index ee0aec5..4262931 100644
--- a/sbopkglint.d/40-newconfig.t.sh
+++ b/sbopkglint.d/40-newconfig.t.sh
@@ -10,13 +10,5 @@
# sbopkglint installed the package, it ran the doinst.sh, which
# should have renamed them.
-NEWFILES=""
-for f in "$( find -type f -name \*.new )"; do
- [ -z "$f" ] && continue
- case "$f" in
- ./usr/doc/*) continue ;;
- esac
- NEWFILES+="$f "
-done
-
-[ -n "$NEWFILES" ] && warn "doinst.sh doesn't handle .new config files:" && ls -l $NEWFILES
+find_warnfiles "doinst.sh doesn't handle .new config files:" \
+ . -type f -a -name '*.new' -a \! -path './usr/doc/*'