summarylogtreecommitdiffstats
path: root/getnessus.sh
diff options
context:
space:
mode:
authorMatt Woelk2016-05-20 09:25:24 -0500
committerMatt Woelk2016-05-20 09:27:05 -0500
commit3ba60dfcf9fb3c1c3b556fa8acc945d444cd4af5 (patch)
treeb6e98a5992c06733fc866f53511295cd4327b557 /getnessus.sh
parent36e48438ac7367dba89938235716960a307b995a (diff)
downloadaur-3ba60dfcf9fb3c1c3b556fa8acc945d444cd4af5.tar.gz
Updated to 6.7.0.
Diffstat (limited to 'getnessus.sh')
-rwxr-xr-xgetnessus.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/getnessus.sh b/getnessus.sh
index 6f340f2fd083..73f5cdef1642 100755
--- a/getnessus.sh
+++ b/getnessus.sh
@@ -17,9 +17,14 @@
#### Wget https settings
WGET_HSTS="--no-hsts"
-#### Check for the latest availible version, and get the current changlog version
-VERSION=$(wget $WGET_HSTS -qO - /dev/null "http://www.tenable.com/products/nessus/new-in-nessus" | grep -o "New in Nessus [0-9.0-9.0-9]*" | grep -o "[0-9.0-9.0-9]*" | head -1 | sed s/[.]/-/g)
-RELEASE=$(wget $WGET_HSTS -qO - /dev/null http://www.tenable.com/products/nessus/new-in-nessus/$VERSION | grep -o "Changelog - [0-9.0-9.0-9]*" | head -1 | awk '{print $NF}')
+#### Check for the latest available version, and get the current changelog version
+# TODO: This is currently not working (as of 6.7.0) so I'm hard-coding it.
+#VERSION=$(wget $WGET_HSTS -qO - /dev/null "http://www.tenable.com/products/nessus/new-in-nessus" | grep -o "New in Nessus [0-9.0-9.0-9]*" | grep -o "[0-9.0-9.0-9]*" | head -1 | sed s/[.]/-/g)
+#RELEASE=$(wget $WGET_HSTS -qO - /dev/null http://www.tenable.com/products/nessus/new-in-nessus/$VERSION | grep -o "Changelog - [0-9.0-9.0-9]*" | head -1 | awk '{print $NF}')
+
+RELEASE=6.7.0
+
+echo -e "Downloading Nessus $RELEASE from downloads.nessus.org ... "
for FEDORA in {0..9}
do
@@ -33,3 +38,5 @@ else
break
fi
done
+
+echo -e "... Download script has finished."