X-Git-Url: https://code.delx.au/monosys/blobdiff_plain/c501eaa373c60f514a513671b88681cf07e70712..a707b040584c14537cef8c7b8e28c2d459c3f63e:/aur-check-updates diff --git a/aur-check-updates b/aur-check-updates index 2a238b3..c3402da 100755 --- a/aur-check-updates +++ b/aur-check-updates @@ -12,7 +12,7 @@ done < <(if [ -t 0 ]; then pacman -Qm; else cat; fi) curl -gsSf "$query_url" | jq -r '.results[] | .Name, .Version, "\u0000"' | while read -r -d $'\0' pkg aur_version; do installed_version="${pkg_versions[$pkg]}" - if [ "$installed_version" != "$aur_version" ]; then + if ! echo -e "${installed_version}\n${aur_version}" | pacsort | tail -n1 | grep -qxF "${installed_version}"; then echo "${pkg} $installed_version -> $aur_version" fi done