9 lines
219 B
Bash
9 lines
219 B
Bash
#!/bin/bash
|
|
|
|
URL="https://gnupg.org/index.html"
|
|
|
|
# Get version number from tag name
|
|
VERSION=$(curl -s -L "$URL" | grep 'The current version of GnuPG is ' | grep -o -E '[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}')
|
|
|
|
echo "$VERSION"
|