From 7e88e51ed292cdca94cd5f1ab1c00483565358b7 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 16 Jun 2023 23:00:32 -0400 Subject: sbopkglint: spaces in filenames WIP #5. --- sbopkglint.d/40-newconfig.t.sh | 12 ++---------- 1 file 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/*' -- cgit v1.2.3