summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-01-29 23:07:04 +0000
committerrillig <rillig@pkgsrc.org>2006-01-29 23:07:04 +0000
commitc22e7cd0312f3ad63df4c12b122816de1d4b18cf (patch)
treee172ccc4c2b2b9e12602af231df79ae1ad06469b /mk/bulk
parente92e83f2972a4d862d428cae4ec68cd08057514e (diff)
downloadpkgsrc-c22e7cd0312f3ad63df4c12b122816de1d4b18cf.tar.gz
Don't test(1) and cd(1), cd(1) directly. As long as "set -e" is not
activated this prevents unexpected behavior.
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/pre-build5
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/bulk/pre-build b/mk/bulk/pre-build
index 1f30fd138a2..abb86c729f9 100644
--- a/mk/bulk/pre-build
+++ b/mk/bulk/pre-build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: pre-build,v 1.56 2005/12/08 21:21:15 rillig Exp $
+# $NetBSD: pre-build,v 1.57 2006/01/29 23:07:04 rillig Exp $
#
# Clean up system to be ready for bulk pkg build
#
@@ -111,8 +111,7 @@ PKG_TOOLS_BIN=`(cd "${PKGLINT_PKG_DIR}" && ${BMAKE} show-var VARNAME=PKG_TOOLS_B
for dbdir in "${PKG_DBDIR}" "${DEPOTBASE}"; do
echo "pre-build> Removing all installed packages in ${dbdir}"
- if [ -d "$dbdir" ]; then
- cd "$dbdir"
+ if cd "$dbdir" 1>/dev/null 2>&1; then
for pkg in *
do
if ${PKG_TOOLS_BIN}/pkg_info -K "$dbdir" -qe "$pkg"; then