aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-28 02:39:42 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-01-28 02:39:42 +0000
commite8ab01389a02f64f7a7c5a01a96ca9ca568223da (patch)
treedad91bd48ef96cc543da055239db44952a6932fb
parentd5dbc2e8edc33dff24d71fe646ea3f35a1c95b56 (diff)
downloadsimplepkg-e8ab01389a02f64f7a7c5a01a96ca9ca568223da.tar.gz
simplepkg-e8ab01389a02f64f7a7c5a01a96ca9ca568223da.tar.bz2
small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@782 04377dda-e619-0410-9926-eae83683ac58
-rwxr-xr-xtrunk/src/mkbuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild
index 353d437..db8bc4f 100755
--- a/trunk/src/mkbuild
+++ b/trunk/src/mkbuild
@@ -1537,7 +1537,10 @@ function set_mkbuild_name {
local name="$1"
MKBUILD_PATH=""
- MKBUILD_NAME="`basename $name`"
+
+ if [ ! -z "$name" ]; then
+ MKBUILD_NAME="`basename $name`"
+ fi
if echo $name | grep -q "/"; then
if echo $name | grep -q -e "\.mkbuild$"; then