diff options
Diffstat (limited to 'trunk/src/templatepkg')
-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 4872621..69b4510 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -200,7 +200,7 @@ function template_create { touch $TEMPLATE_BASE.perms touch $TEMPLATE_BASE.template - if use_svn && [ -d "$TEMPLATE_BASE/.svn" ]; then + if use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then cd `dirname $TEMPLATE_BASE` @@ -482,12 +482,12 @@ function check_template_exist { mkdir $TEMPLATE_BASE.$component fi - if use_svn && [ -d "$TEMPLATE_BASE/.svn" ]; then + if use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then svn add $TEMPLATE_BASE.$component info_commit="yes" fi - elif use_svn && [ -d "$TEMPLATE_BASE/.svn" ] && \ + elif use_svn && [ -d "`dirname $TEMPLATE_BASE`/.svn" ] && \ ! svn_check $TEMPLATE_BASE.$component; then cd `dirname $TEMPLATE_BASE` |