aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2012-03-23 16:58:33 -0500
committerMark Ferrell <major@homeonderanged.org>2012-03-23 16:58:33 -0500
commit10fea5426710a4aa986106b89b7262ed35ec893a (patch)
treef79a0c2ab58fedc313cae087aac73889d5ab7178
parentbc1f9fe7e8c57bd863a22de141130ff795435050 (diff)
Fix resolution of package directory
* When no package is specified on the command line we check to see if the PWD is within a package path, if so we use that package name. Unfortunately the variable expansion wasn't removing sub-directories below the package from the name, which broke things.
-rwxr-xr-xscripts/build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build b/scripts/build
index 9028f16..647c1a2 100755
--- a/scripts/build
+++ b/scripts/build
@@ -274,7 +274,7 @@ if [ "$#" -lt "1" ]; then
NAME="all"
if [ "${PWD##${BUILDER_PKGDIR}/}" != "${PWD}" ]; then
NAME="${PWD##${BUILDER_PKGDIR}/}"
- NAME="${NAME%%*/}"
+ NAME="${NAME%/*}"
fi
set -- "${NAME}"
fi