summaryrefslogtreecommitdiff
path: root/manualPorts/pidgin-otr/lastVersion.sh
blob: c2d1167b1a50182ce23998e97adf37c41ce6f378 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

curl "https://otr.cypherpunks.ca/index.php" 2> /dev/null | \
  tr "\"" "\n" | \
  grep "^pidgin-otr-.*\.tar\.gz\$" | \
  sed "s/^pidgin-otr-\(.*\)\.tar\.gz\$/\1/" | \
  sort -V | \
  tail -n1