pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/audit-packages/files avoid use of test -e for...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c513238a03a1
branches: trunk
changeset: 482526:c513238a03a1
user: grant <grant%pkgsrc.org@localhost>
date: Fri Oct 29 10:45:45 2004 +0000
description:
avoid use of test -e for consistency with pkgsrc itself. use
consistent shell syntax.
diffstat:
security/audit-packages/files/download-vulnerability-list | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 2b2deaef75d6 -r c513238a03a1 security/audit-packages/files/download-vulnerability-list
--- a/security/audit-packages/files/download-vulnerability-list Fri Oct 29 10:41:03 2004 +0000
+++ b/security/audit-packages/files/download-vulnerability-list Fri Oct 29 10:45:45 2004 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index