Add check-version.sh script

This commit is contained in:
2025-08-16 23:02:30 +03:00
parent 6493413e54
commit d9a4532e5b
+2 -2
View File
@@ -2,7 +2,7 @@
URL="https://www.gnu.org/software/binutils/"
# Get version number from tag name
VERSION=$(curl -s -L "$URL" | grep 'The latest release of GNU binutils is ' | grep -o -E '([0-9]\.[0-9]*)')
# Get version number
VERSION=$(curl -s -L "$URL" | grep 'The latest release of GNU binutils is ' | grep -o -E '[0-9]{1,}.[0-9]{1,}(\.[0-9]{1,}|)')
echo "$VERSION"