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

curl -Ss 'https://ccid.apdu.fr/files/' | \
  tr '<>' '\n' | \
  sed -n '
    s/^a href="ccid-\([0-9.]\+\)\.tar\.bz2"$/\1/
    T
    p
  ' | \
  sort -V | \
  tail -n1