Update to 8.1.1
This commit is contained in:
@ -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 "What’s new in Packet Tracer \d\.\d\.\d" | \
|
||||
grep --only-matching --perl-regexp "What’s 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."
|
||||
|
Reference in New Issue
Block a user