diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-06-04 00:03:45 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-06-04 00:03:45 +0800 |
| commit | 2c933766103a1ee610e514288dd955f22e0ac0b9 (patch) | |
| tree | efedaee2dfb773b7aeb72ced577682212cb1c2a8 | |
| parent | 80021245b797e639b905699877a80266bad63bc1 (diff) | |
| download | autils-2c933766103a1ee610e514288dd955f22e0ac0b9.tar.gz autils-2c933766103a1ee610e514288dd955f22e0ac0b9.zip | |
updated apkg-outdated
| -rwxr-xr-x | apkg-outdated | 2 |
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 |