diff options
-rwxr-xr-x | trunk/src/templatepkg | 6 |
1 files changed, 3 insertions, 3 deletions
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 |