diff --git a/check-version.sh b/check-version.sh index ac357e8..ddbfa60 100644 --- a/check-version.sh +++ b/check-version.sh @@ -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"