]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 7 Apr 2007 18:29:19 +0000 (18:29 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 7 Apr 2007 18:29:19 +0000 (18:29 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@305 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index c59087ddcf11427e966c3c66fd779daeebb91bb6..5a0150e841f57eb716f29d99bd60a7fab51c93a4 100755 (executable)
@@ -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
 
 }