diff options
Diffstat (limited to 'trunk/src')
-rwxr-xr-x | trunk/src/templatepkg | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index c59087d..5a0150e 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -409,8 +409,9 @@ function template_update { done - if ! svn_check $TEMPLATE_BASE.template && [ -d "$TEMPLATE_BASE.d/.svn" ]; then - svn add $TEMPLATE_BASE.template + if ! svn_check $TEMPLATE_BASE.template && [ -d "`dirname $TEMPLATE_BASE`/.svn" ]; then + cd `dirname $TEMPLATE_BASE` + svn add `basedir $TEMPLATE_BASE`.template fi } |