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