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

curl -Ss 'https://github.com/OfflineIMAP/offlineimap/tags' \
| tr '"<>' '\n' \
| sed '
  s,^/OfflineIMAP/offlineimap/releases/tag/v\([0-9.]\+\)$,\1,
  t
  d
' \
| sort -V \
| tail -n1