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

curl "https://github.com/mtoyoda/sl/releases" 2> /dev/null | \
  tr "\"" "\n" | \
  sed '
    s@^/mtoyoda/sl/archive/refs/tags/\([0-9.-]*\)\.tar\.gz$@\1@
    t
    d
  ' | \
  sort -V | \
  tail -n1