diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-06-26 00:05:19 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-06-26 00:05:19 +0800 |
| commit | 33696ea737b5f3451df242a818e484f8e760bc71 (patch) | |
| tree | b4ffd87195675dc8bc2f3b11ec61690e083ff571 /apkg-outdated | |
| parent | d1817ea579b6ca637b9d422e859be57f12ac0a88 (diff) | |
| download | autils-33696ea737b5f3451df242a818e484f8e760bc71.tar.gz autils-33696ea737b5f3451df242a818e484f8e760bc71.zip | |
updated apkg -p and remove workdir on error
Diffstat (limited to 'apkg-outdated')
| -rwxr-xr-x | apkg-outdated | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apkg-outdated b/apkg-outdated index 6660175..454a68f 100755 --- a/apkg-outdated +++ b/apkg-outdated @@ -24,9 +24,9 @@ while [ "$1" ]; do fi newver=$(curl -SsZA a https://repology.org/badge/latest-versions/$pname.svg | grep middle | sed 's/.*middle">//;s/<.*//;s/,//' | tr ' ' '\n' | tail -n1) if [ "$newver" = "-" ]; then - echo "$repo/$pname 404 ($curver)" + echo "$repo/${1##*/} 404 ($curver)" elif [ "$curver" != "$newver" ]; then - echo "$repo/$pname $newver ($curver)" + echo "$repo/${1##*/} $newver ($curver)" fi shift done |