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

curl -Ss 'https://github.com/scanmem/scanmem/releases' | \
  tr '"' '\n' | \
  sed '
    s@^/scanmem/scanmem/releases/tag/v\(.*\)$@\1@
    t
    d
  ' | \
  sort -V | \
  tail -n1