From 465ca21dc070e5b476bd533915b8ad9e0b470416 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 19 Jul 2006 22:26:26 +0000 Subject: Be more conservative and avoid possible shell implementation differences by not using `...` inside ${...#...}. --- mk/pkginstall/dirs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mk/pkginstall/dirs') 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} -- cgit v1.2.3