diff options
author | Erich Eckner <git@eckner.net> | 2021-03-25 21:33:44 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-03-25 21:33:44 +0100 |
commit | e2add6355ada61f155b1d3633f6055e69feba69e (patch) | |
tree | a87814e0c9c5bf6c63771a3ca77b62e909d420e2 /manualPorts | |
parent | 95f3f3c7541f8f98c57799dfbe20203db3b85781 (diff) | |
download | crux-ports-e2add6355ada61f155b1d3633f6055e69feba69e.tar.xz |
scanmem: update lastVrsion.sh
Diffstat (limited to 'manualPorts')
-rwxr-xr-x | manualPorts/scanmem/lastVersion.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manualPorts/scanmem/lastVersion.sh b/manualPorts/scanmem/lastVersion.sh index 9bef937..7b67f65 100755 --- a/manualPorts/scanmem/lastVersion.sh +++ b/manualPorts/scanmem/lastVersion.sh @@ -1,8 +1,11 @@ #!/bin/bash -curl "https://github.com/scanmem/scanmem/releases" 2> /dev/null | \ - tr "\"" "\n" | \ - grep "^/scanmem/scanmem/archive/v.*\.tar\.gz\$" | \ - sed "s|^/scanmem/scanmem/archive/v\(.*\).tar.gz\$|\1|" | \ +curl -Ss 'https://github.com/scanmem/scanmem/releases' | \ + tr '"' '\n' | \ + sed ' + s@^/scanmem/scanmem/archive/refs/tags/v\(.*\)\.tar\.gz$@\1@ + t + d + ' | \ sort -V | \ tail -n1 |