summaryrefslogtreecommitdiff
path: root/mk/pkginstall/header
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-19 22:26:26 +0000
committerjlam <jlam>2006-07-19 22:26:26 +0000
commit06b69c1d215e5808477e32ea4f0d39424cfe4498 (patch)
tree98f5e4872af050a007b1203cb9230adbd60f0170 /mk/pkginstall/header
parented0f51ea738b7001dc24e6c703fa49de8152e287 (diff)
downloadpkgsrc-06b69c1d215e5808477e32ea4f0d39424cfe4498.tar.gz
Be more conservative and avoid possible shell implementation differences
by not using `...` inside ${...#...}.
Diffstat (limited to 'mk/pkginstall/header')
-rw-r--r--mk/pkginstall/header5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/pkginstall/header b/mk/pkginstall/header
index 47c91b7981e..42bdc29f624 100644
--- a/mk/pkginstall/header
+++ b/mk/pkginstall/header
@@ -1,6 +1,6 @@
#!@SH@
#
-# $NetBSD: header,v 1.1 2006/05/21 23:50:15 jlam Exp $
+# $NetBSD: header,v 1.2 2006/07/19 22:26:26 jlam Exp $
SELF="$0"
PKGNAME="$1"
@@ -48,7 +48,8 @@ TR="@TR@"
TRUE="@TRUE@"
XARGS="@XARGS@"
-: ${PKG_METADATA_DIR=`${PWD_CMD}`}
+CURDIR=`${PWD_CMD}`
+: ${PKG_METADATA_DIR=${CURDIR}}
PKGBASE="@PKGBASE@"
LOCALBASE="@LOCALBASE@"