9 lines
213 B
Bash
9 lines
213 B
Bash
#!/bin/bash
|
|
|
|
URL="https://www.gnu.org/software/m4/"
|
|
|
|
# Get version number from tag name
|
|
VERSION=$(curl -s -L "$URL" | grep 'The latest stable version is ' | grep -o -E '([0-9]*\.[0-9]*)\.[0-9]*')
|
|
|
|
echo "$VERSION"
|