Change directory before ${FETCH_CMD} as mk/bsd.pkg.mk does. This avoids a

fetch error if FETCH_CMD is e.g. ``curl -O''.  No functional changes.
This commit is contained in:
uebayasi 2002-12-13 11:18:14 +00:00
parent 10c57e570a
commit f79202d866

View file

@ -1,5 +1,5 @@
#! ${SH}
# $NetBSD: download-vulnerability-list,v 1.12 2002/07/04 23:51:28 wiz Exp $
# $NetBSD: download-vulnerability-list,v 1.13 2002/12/13 11:18:14 uebayasi Exp $
if [ ! -e ${PKGVULNDIR} ]; then
echo "Creating ${PKGVULNDIR}"
@ -7,9 +7,10 @@ if [ ! -e ${PKGVULNDIR} ]; then
fi
VUL_SOURCE="ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/vulnerabilities"
NEW_VUL_LIST=${PKGVULNDIR}/vulnerabilities.$$
EXIST_VUL_LIST=${PKGVULNDIR}/vulnerabilities
NEW_VUL_LIST=vulnerabilities.$$
EXIST_VUL_LIST=vulnerabilities
cd ${PKGVULNDIR}
${FETCH_CMD} -o ${NEW_VUL_LIST} ${VUL_SOURCE}
existsize=0
newsize=0