summaryrefslogtreecommitdiff
path: root/manualPorts/offlineimap/lastVersion.sh
blob: b74f151841d9d055b17ce020d5986539a209fbc6 (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/v\([0-9.]\+\)\.tar\.gz$,\1,
    t
    d
  ' | \
  sort -V | \
  tail -n1