summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-25 21:35:15 +0100
committerErich Eckner <git@eckner.net>2021-03-25 21:35:15 +0100
commit5dea801a614eb940082d1f16c26bb662421d2395 (patch)
treefdc3091dbbe8ef723f3309bf709ffd1a6bc34bef
parentf31c01b8523168777ba036168ecd78d305bf8992 (diff)
downloadcrux-ports-5dea801a614eb940082d1f16c26bb662421d2395.tar.xz
sl: update lastVrsion.sh
-rwxr-xr-xmanualPorts/sl/lastVersion.sh7
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