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

curl "http://zlib.net/pigz/" 2> /dev/null | \
  tr "\"" "\n" | \
  grep "^pigz-.*\.tar\.gz\$" | \
  sed "s/^pigz-\(.*\)\.tar\.gz\$/\1/" | \
  sort -V | \
  tail -n1