From 6790d6fddeb804798a34890057676f97e6b7a178 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Mon, 16 Oct 2017 13:49:13 +0200 Subject: [PATCH] ~looknew.sh: Make sure every file is only processed once --- root/usr/libexec/slackpkg/functions.d/~looknew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/usr/libexec/slackpkg/functions.d/~looknew.sh b/root/usr/libexec/slackpkg/functions.d/~looknew.sh index 52fb313..38c551b 100644 --- a/root/usr/libexec/slackpkg/functions.d/~looknew.sh +++ b/root/usr/libexec/slackpkg/functions.d/~looknew.sh @@ -11,7 +11,7 @@ looknew() { echo -e "\nSearching for NEW configuration files" FILES="" - find /var/log/packages -maxdepth 1 -type f ${ONLY_NEW_DOTNEW} | xargs sed -n -e '/^FILE LIST:$/,/^$/p' | fgrep -xv 'FILE LIST:' > $TMPDIR/allfiles + find /var/log/packages -maxdepth 1 -type f ${ONLY_NEW_DOTNEW} | xargs sed -n -e '/^FILE LIST:$/,/^$/p' | fgrep -xv 'FILE LIST:' | sort | uniq > $TMPDIR/allfiles local IFS=$'\n' for f in $(grep '\.new$' $TMPDIR/allfiles | sed -e 's/\.new$//'); do