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

curl -Ss 'https://dl.suckless.org/tools/' | \
  tr '"' '\n' | \
  sed '
    s/^ii-\([0-9.]\+\)\.tar\.gz$/\1/
    t
    d
  ' | \
  sort -V | \
  tail -n1