From 3b194aab45656d429b752bf4f34f781c1fad0463 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 7 Apr 2007 18:29:19 +0000 Subject: templatepkg: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@305 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/templatepkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'trunk') 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 } -- cgit v1.2.3