diff options
Diffstat (limited to 'manualPorts/sl')
-rwxr-xr-x | manualPorts/sl/lastVersion.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/manualPorts/sl/lastVersion.sh b/manualPorts/sl/lastVersion.sh index 7a493ba..22f27b1 100755 --- a/manualPorts/sl/lastVersion.sh +++ b/manualPorts/sl/lastVersion.sh @@ -2,7 +2,10 @@ curl "https://github.com/mtoyoda/sl/releases" 2> /dev/null | \ tr "\"" "\n" | \ - grep "^/mtoyoda/sl/archive/[0-9.-]*\.tar\.gz\$" | \ - sed "s|^/mtoyoda/sl/archive/\(.*\)\.tar\.gz\$|\1|" | \ + sed ' + s@^/mtoyoda/sl/archive/refs/tags/\([0-9.-]*\)\.tar\.gz$@\1@ + t + d + ' | \ sort -V | \ tail -n1 |