From: James Bunton Date: Wed, 24 Jul 2019 22:18:57 +0000 (+1000) Subject: aur-check-updates: don't complain if a newer version is installed locally X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/a707b040584c14537cef8c7b8e28c2d459c3f63e aur-check-updates: don't complain if a newer version is installed locally --- 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