aboutsummaryrefslogtreecommitdiff
path: root/apkg-outdated
diff options
context:
space:
mode:
Diffstat (limited to 'apkg-outdated')
-rwxr-xr-xapkg-outdated2
1 files changed, 1 insertions, 1 deletions
diff --git a/apkg-outdated b/apkg-outdated
index 454a68f..9963f08 100755
--- a/apkg-outdated
+++ b/apkg-outdated
@@ -22,7 +22,7 @@ while [ "$1" ]; do
python-*) pname=python:${pname#python-};;
esac
fi
- newver=$(curl -SsZA a https://repology.org/badge/latest-versions/$pname.svg | grep middle | sed 's/.*middle">//;s/<.*//;s/,//' | tr ' ' '\n' | tail -n1)
+ newver=$(curl -s -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" https://repology.org/badge/latest-versions/$pname.svg | grep middle | sed 's/.*middle">//;s/<.*//;s/,//' | tr ' ' '\n' | tail -n1)
if [ "$newver" = "-" ]; then
echo "$repo/${1##*/} 404 ($curver)"
elif [ "$curver" != "$newver" ]; then