From: rhatto Date: Wed, 4 Apr 2007 14:08:10 +0000 (+0000) Subject: templatepkg: small fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c2b3d4d405f932e4920da0e0f487236584aaaac7;p=simplepkg.git templatepkg: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@223 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index 3891f3b..8cc2bd6 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -159,12 +159,12 @@ function template_create { local template_base info_commit - if [ ! -d "$TEMPLATE_BASE" ]; then + if [ ! -d "`dirname $TEMPLATE_BASE`" ]; then if use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then cd `dirname $TEMPLATE_BASE` - svn mkdir $TEMPLATE_BASE + svn mkdir `dirname $TEMPLATE_BASE` else - mkdir -p $TEMPLATE_BASE + mkdir -p `dirname $TEMPLATE_BASE` fi fi