diff options
author | Mark Ferrell <major@homeonderanged.org> | 2012-05-11 15:36:42 -0500 |
---|---|---|
committer | Mark Ferrell <major@homeonderanged.org> | 2012-05-11 15:36:42 -0500 |
commit | a8a5fdb4865e40baf79146f4578ebb279797d42a (patch) | |
tree | d00820d3e77c58d976c51bbff125fec445b68741 | |
parent | d803a5e2eb6ecdcb1b885eb42858385ebeac1457 (diff) |
Fix target detection when in deep directories
-rwxr-xr-x | scripts/build | 2 |
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 |