diff options
Diffstat (limited to 'manualPorts/hardlinkedBackups/lastVersion.sh')
-rwxr-xr-x | manualPorts/hardlinkedBackups/lastVersion.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manualPorts/hardlinkedBackups/lastVersion.sh b/manualPorts/hardlinkedBackups/lastVersion.sh index 304c5ba..1147c0d 100755 --- a/manualPorts/hardlinkedBackups/lastVersion.sh +++ b/manualPorts/hardlinkedBackups/lastVersion.sh @@ -1,8 +1,11 @@ #!/bin/bash -wget -O - "https://opensources.eckner.net/ls.php?ls=hardlinkedBackups" 2> /dev/null | \ - tr "<>" "\n\n" | \ - grep "^hardlinkedBackups-" | \ - sed "s|^hardlinkedBackups-||" | \ +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 |