summaryrefslogtreecommitdiff
path: root/manualPorts/tinc/lastVersion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/tinc/lastVersion.sh')
-rwxr-xr-xmanualPorts/tinc/lastVersion.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/manualPorts/tinc/lastVersion.sh b/manualPorts/tinc/lastVersion.sh
index 11e510a..582ca2c 100755
--- a/manualPorts/tinc/lastVersion.sh
+++ b/manualPorts/tinc/lastVersion.sh
@@ -2,9 +2,12 @@
curl -Ss 'https://www.tinc-vpn.org/packages/' \
| sed '
- s@^.*<a href="\(tinc-\([0-9.]\+\)\.tar\.gz\)">\1</a>.*$@\2@
+ s@^.*<a href="\(tinc-\([0-9.]\+\)\.tar\.gz\)">\1</a>.*$@\2 normal \2@
+ t
+ s@^.*<a href="\(tinc-\(\([0-9.]\+\)pre\([0-9]\+\)\)\.tar\.gz\)">\1</a>.*$@\2 pre \3 \4@
t
d
' \
-| sort -V \
+| sort -k3V,3 -k2r,2 -k4n,4 \
+| cut -d' ' -f1 \
| tail -n1