From e79438e798b2c26b4c3301bdd6f42f4da24151b6 Mon Sep 17 00:00:00 2001 From: "James E. Housley" Date: Thu, 1 Nov 2001 01:27:47 +0000 Subject: Update again. This time only search of 4xxx in top 5 lines. --- security/uvscan-dat/files/update_dat | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'security/uvscan-dat') diff --git a/security/uvscan-dat/files/update_dat b/security/uvscan-dat/files/update_dat index 864d00fbbba5..360e09501089 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 -- cgit v1.2.3