summaryrefslogtreecommitdiff
path: root/mk/pkginstall/dirs
diff options
context:
space:
mode:
Diffstat (limited to 'mk/pkginstall/dirs')
-rw-r--r--mk/pkginstall/dirs6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/pkginstall/dirs b/mk/pkginstall/dirs
index 361060edade..665dbaf4767 100644
--- a/mk/pkginstall/dirs
+++ b/mk/pkginstall/dirs
@@ -1,4 +1,4 @@
-# $NetBSD: dirs,v 1.1 2006/05/21 23:50:15 jlam Exp $
+# $NetBSD: dirs,v 1.2 2006/07/19 22:26:26 jlam Exp $
#
# Generate a +DIRS script that reference counts directories that are
# required for the proper functioning of the package.
@@ -67,7 +67,9 @@ TRUE="@TRUE@"
SELF=$0
ACTION=$1
-PKG_METADATA_DIR="${2-`${PWD_CMD}`}"
+
+CURDIR=`${PWD_CMD}`
+PKG_METADATA_DIR="${2-${CURDIR}}"
: ${PKGNAME=${PKG_METADATA_DIR##*/}}
: ${PKG_DBDIR=${PKG_METADATA_DIR%/*}}
: ${PKG_REFCOUNT_DBDIR=${PKG_DBDIR}.refcount}