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

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