summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2001-11-01 01:27:47 +0000
committerjeh <jeh@FreeBSD.org>2001-11-01 01:27:47 +0000
commit0e1227663a4362a753cf04be6c4e088baf1afd36 (patch)
tree496c0e46851d1bbe0dd9875112efac12b4295d8a /security
parent431bea69d3339e2ae3ec1ad93279f5f562d8932d (diff)
downloadFreeBSD-ports-0e1227663a4362a753cf04be6c4e088baf1afd36.zip
FreeBSD-ports-0e1227663a4362a753cf04be6c4e088baf1afd36.tar.gz
Update again. This time only search of 4xxx in top 5 lines.
Diffstat (limited to 'security')
-rw-r--r--security/uvscan-dat/files/update_dat8
1 files changed, 1 insertions, 7 deletions
diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat
index 864d00f..360e095 100644
--- a/security/uvscan-dat/files/update_dat
+++ b/security/uvscan-dat/files/update_dat
@@ -4,13 +4,7 @@
#
cd @PREFIX@/libexec/uvscan/
ftp http://download.nai.com/products/datfiles/4.x/nai/readme.txt >/dev/null
-AVVER=`head -1 readme.txt | cut -d' ' -f11`
-if [ "x$AVVER" = "x" ] ; then
- AVVER=`grep 'DAT [0-9]* Release Date' readme.txt | head -1 | sed -e 's/^.*DAT \([0-9]*\) Release Date.*$/\1/'`
-fi
-if [ "x$AVVER" = "x" ] ; then
- AVVER=`head -5 readme.txt | grep ' 4[0-9][0-9][0-9] ' | head -1 | sed -e 's/^.* \([0-9]*\) .*$/\1/'`
-fi
+AVVER=`head -5 readme.txt | grep ' 4[0-9][0-9][0-9] ' | head -1 | sed -e 's/^.* \(4[0-9]*\) .*$/\1/'`
if [ ! -f dat-$AVVER.tar ]; then
for i in *.tar ; do
mv $i $i.old
OpenPOWER on IntegriCloud