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

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