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

curl -Ss "https://github.com/mtoyoda/sl/releases" | \
  tr '"' '\n' | \
  sed '
    s@^/mtoyoda/sl/releases/tag/\([0-9.-]\+\)$@\1@
    t
    d
  ' | \
  sort -V | \
  tail -n1