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

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