From e8ab01389a02f64f7a7c5a01a96ca9ca568223da Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 28 Jan 2009 02:39:42 +0000 Subject: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@782 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/mkbuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3