summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrh <rh>1999-04-16 10:50:12 +0000
committerrh <rh>1999-04-16 10:50:12 +0000
commit9021c14c17c3b9ab98a727d5644f05f60b888227 (patch)
tree9de1e4593d9e9ab3d87301cb952700a6c01ab27a /pkgtools
parent814b305bf1b248f45729e4067dd83593bf7a113f (diff)
downloadpkgsrc-9021c14c17c3b9ab98a727d5644f05f60b888227.tar.gz
Fix shell error causing "Syntax error: end of file unexpected"
if ${PKG_DBDIR} is missing
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index 2041492ef7b..4077c95059c 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 1999/03/30 12:52:36 hubertf Exp $
+# $NetBSD: Makefile,v 1.16 1999/04/16 10:50:12 rh Exp $
#
# Note to package maintainers:
@@ -31,7 +31,7 @@ MANCOMPRESSED= yes
.endif
post-install:
- if [ ! -f $${PKG_DBDIR:-/var/db/pkg}/pkgdb.byfile.db ]; then
+ if [ ! -f $${PKG_DBDIR:-/var/db/pkg}/pkgdb.byfile.db ]; then \
if [ ! -d $${PKG_DBDIR:-/var/db/pkg} ]; then \
${MKDIR} $${PKG_DBDIR:-/var/db/pkg}; \
fi; \