]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 4 Apr 2007 14:08:10 +0000 (14:08 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Wed, 4 Apr 2007 14:08:10 +0000 (14:08 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@223 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index 3891f3b790f972c0b05f81a123e4f755a0ee0660..8cc2bd6eb3a03f4f4d7bcd3d911962230dfbed4b 100755 (executable)
@@ -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