12 lines
250 B
Bash
12 lines
250 B
Bash
#!/bin/bash
|
|
|
|
URL="https://www.speex.org/downloads/"
|
|
|
|
# Get version number from tag name
|
|
VERSION=$(curl -s -L "$URL" | grep -o -E 'SpeexDSP [0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?' | head -n1)
|
|
|
|
# Trim prefix
|
|
VERSION=${VERSION//SpeexDSP /}
|
|
|
|
echo "$VERSION"
|