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

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