aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2012-05-11 15:36:42 -0500
committerMark Ferrell <major@homeonderanged.org>2012-05-11 15:36:42 -0500
commita8a5fdb4865e40baf79146f4578ebb279797d42a (patch)
treed00820d3e77c58d976c51bbff125fec445b68741
parentd803a5e2eb6ecdcb1b885eb42858385ebeac1457 (diff)
Fix target detection when in deep directories
-rwxr-xr-xscripts/build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build b/scripts/build
index c8b2ad0..c6f32e2 100755
--- a/scripts/build
+++ b/scripts/build
@@ -310,7 +310,7 @@ if [ "$#" -lt "1" ]; then
if [ "${PWD##${BUILDER_PKGDIR}/}" != "${PWD}" ]; then
category="${PWD##${BUILDER_PKGDIR}/}"
if [ "${category%%/*}" != "${category}" ]; then
- name="${category##*/}"
+ name="${category#*/}"
category="${category%%/*}"
NAME="${category}/${name%%/*}"
else