diff options
Diffstat (limited to 'manualPorts/crypt-expiry-check/lastVersion.sh')
-rwxr-xr-x | manualPorts/crypt-expiry-check/lastVersion.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manualPorts/crypt-expiry-check/lastVersion.sh b/manualPorts/crypt-expiry-check/lastVersion.sh index d1bd247..1147c0d 100755 --- a/manualPorts/crypt-expiry-check/lastVersion.sh +++ b/manualPorts/crypt-expiry-check/lastVersion.sh @@ -1,8 +1,11 @@ #!/bin/bash -wget -O - "https://opensources.eckner.net/ls.php?ls=crypt-expiry-check" 2> /dev/null | \ - tr "<>" "\n\n" | \ - grep "^crypt-expiry-check-" | \ - sed "s|^crypt-expiry-check-||" | \ +curl -Ss "https://git.eckner.net/Erich/$(basename "${0%/*}")/refs/" | \ + tr '<>' '\n' | \ + sed -n " + s,^a href='/Erich/$(basename "${0%/*}")/snapshot/$(basename "${0%/*}")-\([0-9.]\+\)\.tar\.xz'$,\1, + T + p + " | \ sort -V | \ tail -n1 |