diff options
author | grant <grant@pkgsrc.org> | 2004-10-29 10:45:45 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-10-29 10:45:45 +0000 |
commit | 040549214381902ea5dd0e80fb64b798d4713cf7 (patch) | |
tree | dc4f2734607e00f6f932864909073a06abf69e6c | |
parent | 5d0bf40873d1c889421d6b45e1d9024c9cea6e32 (diff) | |
download | pkgsrc-040549214381902ea5dd0e80fb64b798d4713cf7.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 |