small logical update

This commit is contained in:
ericlay 2023-04-18 19:48:55 -05:00
parent 462c15b61b
commit e192e57306
1 changed files with 1 additions and 3 deletions

4
fpf
View File

@ -35,9 +35,7 @@ UpdateAurInfos() {
jq --compact-output '.[] |
{ Name, Description } ' |
awk -F'"' '{ printf "%-20s\t%s\n", $4, $8}' > /tmp/aur/packages-meta
while IFS= read -r pkgName; do
grep -w "^$pkgName " /tmp/aur/packages-meta >> /tmp/aur/installed
done < <(pacman -Qqm)
parallel grep -w "^{} " /tmp/aur/packages-meta ">>" /tmp/aur/installed < <(pacman -Qqm)
sort <(comm -23 <(cat /tmp/aur/packages-meta | sort) <( cat /tmp/aur/installed | sort)) <(comm -12 <( cat /tmp/aur/packages-meta | sort) <(cat /tmp/aur/installed | sort) | awk -F"\t" '{print $1" \033[32m*\033[0m ", $2}') -o /tmp/aur/packages-meta
}