Browse Source

~looknew.sh: Make sure every file is only processed once

rocket-config
mid-kid 7 years ago
parent
commit
6790d6fdde
  1. 2
      root/usr/libexec/slackpkg/functions.d/~looknew.sh

2
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

Loading…
Cancel
Save