summaryrefslogtreecommitdiff
path: root/manualPorts/tinc/lastVersion.sh
blob: 11e510a668f44feea06c8fcc45d23b52a2b3b162 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

curl -Ss 'https://www.tinc-vpn.org/packages/' \
| sed '
  s@^.*<a href="\(tinc-\([0-9.]\+\)\.tar\.gz\)">\1</a>.*$@\2@
  t
  d
' \
| sort -V \
| tail -n1