summaryrefslogtreecommitdiff
path: root/mk/pkginstall/dirs
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-19 22:26:26 +0000
committerjlam <jlam>2006-07-19 22:26:26 +0000
commit465ca21dc070e5b476bd533915b8ad9e0b470416 (patch)
tree98f5e4872af050a007b1203cb9230adbd60f0170 /mk/pkginstall/dirs
parentd190f9d5db48cbd07bc768f75f43ddd918d1578a (diff)
downloadpkgsrc-465ca21dc070e5b476bd533915b8ad9e0b470416.tar.gz
Be more conservative and avoid possible shell implementation differences
by not using `...` inside ${...#...}.
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}