From e2add6355ada61f155b1d3633f6055e69feba69e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 25 Mar 2021 21:33:44 +0100 Subject: scanmem: update lastVrsion.sh --- manualPorts/scanmem/lastVersion.sh | 11 +++++++---- 1 file 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 -- cgit v1.2.3-70-g09d2