diff options
author | grant <grant> | 2004-10-29 10:45:45 +0000 |
---|---|---|
committer | grant <grant> | 2004-10-29 10:45:45 +0000 |
commit | 684de3231f0b4e63bf0594d7b096a86046c700ac (patch) | |
tree | dc4f2734607e00f6f932864909073a06abf69e6c | |
parent | 0f4de5cd8740e0e03128e05c316c9c2a9b019104 (diff) | |
download | pkgsrc-684de3231f0b4e63bf0594d7b096a86046c700ac.tar.gz |
avoid use of test -e for consistency with pkgsrc itself. use
consistent shell syntax.
-rw-r--r-- | security/audit-packages/files/download-vulnerability-list | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/security/audit-packages/files/download-vulnerability-list b/security/audit-packages/files/download-vulnerability-list index ef2e8372089..3ce13ae10ab 100644 --- a/security/audit-packages/files/download-vulnerability-list +++ b/security/audit-packages/files/download-vulnerability-list @@ -1,6 +1,6 @@ #! @SH@ -# $NetBSD: download-vulnerability-list,v 1.24 2004/04/14 09:04:15 wiz Exp $ +# $NetBSD: download-vulnerability-list,v 1.25 2004/10/29 10:45:45 grant Exp $ # # Copyright (c) 2000-2003 Alistair Crooks. All rights reserved. # @@ -35,7 +35,7 @@ : ${PKGVULNDIR=@PKGVULNDIR@} -if [ ! -e ${PKGVULNDIR} ]; then +if [ ! -d ${PKGVULNDIR}/. ]; then echo "Creating ${PKGVULNDIR}" @MKDIR@ ${PKGVULNDIR} || (echo "Can't create ${PKGVULNDIR}" 1>&2; exit 1) fi @@ -62,8 +62,7 @@ case "$utility" in esac # see if we got a file -if [ ! -f "${NEW_VUL_LIST}" ] -then +if [ ! -f "${NEW_VUL_LIST}" ]; then echo "***WARNING*** Download of vulnerabilities file failed" 1>&2 exit 1 fi |