9 lines
193 B
Bash
9 lines
193 B
Bash
#!/bin/bash
|
|
|
|
URL="https://sourceware.org/elfutils/"
|
|
|
|
# Get version number from tag name
|
|
VERSION=$(curl -s -L "$URL" | grep -A1 'release notes:' | grep -o -E '([0-9]\.[0-9]*)')
|
|
|
|
echo "$VERSION"
|