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

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