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