diff options
author | Erich Eckner <git@eckner.net> | 2021-03-25 21:35:15 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-03-25 21:35:15 +0100 |
commit | 5dea801a614eb940082d1f16c26bb662421d2395 (patch) | |
tree | fdc3091dbbe8ef723f3309bf709ffd1a6bc34bef /manualPorts/sl | |
parent | f31c01b8523168777ba036168ecd78d305bf8992 (diff) | |
download | crux-ports-5dea801a614eb940082d1f16c26bb662421d2395.tar.xz |
sl: update lastVrsion.sh
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 |