diff options
author | Erich Eckner <git@eckner.net> | 2018-08-10 11:01:44 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-08-10 11:01:44 +0200 |
commit | ed5dc53c92ebfa979efb497f18685fcd5c4d9207 (patch) | |
tree | f7469c8b6738cd275df9718b94fb029fa9e16512 /manualPorts/bash-git-prompt/lastVersion.sh | |
parent | c63d1f565436f5985f84b1b4c8eeb98da136bfa0 (diff) | |
download | crux-ports-ed5dc53c92ebfa979efb497f18685fcd5c4d9207.tar.xz |
opensources.eckner.net -> git.eckner.net
Diffstat (limited to 'manualPorts/bash-git-prompt/lastVersion.sh')
-rwxr-xr-x | manualPorts/bash-git-prompt/lastVersion.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manualPorts/bash-git-prompt/lastVersion.sh b/manualPorts/bash-git-prompt/lastVersion.sh index 2c71e5c..1147c0d 100755 --- a/manualPorts/bash-git-prompt/lastVersion.sh +++ b/manualPorts/bash-git-prompt/lastVersion.sh @@ -1,8 +1,11 @@ #!/bin/bash -wget -O - "https://opensources.eckner.net/ls.php?ls=bash-git-prompt" 2> /dev/null | \ - tr "<>" "\n\n" | \ - grep "^bash-git-prompt-" | \ - sed "s|^bash-git-prompt-||" | \ +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 |