Add check-version.sh script
This commit is contained in:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user