Update to 8.1.1

This commit is contained in:
losuler
2022-01-30 00:45:45 +11:00
parent 6c4f2c8b7b
commit f0b8272355
3 changed files with 8 additions and 7 deletions

View File

@ -6,12 +6,13 @@ set -o errexit
set -o pipefail
set -o nounset
PREV_RELEASE="8.1.0"
# The FAQ page says 8.1 but it's actually 8.1.1
PREV_RELEASE="8.1"
LATEST_RELEASE=$(curl --silent https://www.netacad.com/courses/packet-tracer/faq | \
grep --only-matching --perl-regexp "Whats new in Packet Tracer \d\.\d\.\d" | \
grep --only-matching --perl-regexp "Whats new in Packet Tracer (\d\.\d|\.\d)" | \
head -1 | \
grep --only-matching --perl-regexp '\d\.\d\.\d')
grep --only-matching --perl-regexp "(\d\.\d|\.\d)")
if [[ "${LATEST_RELEASE}" != "${PREV_RELEASE}" ]]; then
echo "There's a new release of Packet Tracer."