]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 9 Feb 2007 21:14:37 +0000 (21:14 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 9 Feb 2007 21:14:37 +0000 (21:14 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@173 04377dda-e619-0410-9926-eae83683ac58

src/templatepkg

index 84b2ac946e7afe146918fc5f7218929d018d3bd1..1634d8540a2362c1c90df75906e0b82963324eb1 100755 (executable)
@@ -142,7 +142,8 @@ function template_add {
     if [ -a "$jail/$file" ]; then
 
       mkdir -p $TEMPLATE_BASE.d/`dirname $file`/
-      cp -a $jail/$file $TEMPLATE_BASE.d/$file
+      destination="`echo $TEMPLATE_BASE.d/$file | sed -e 's/\/$//'`"
+      cp -a echo $jail/$file $destination
       if [ "$TEMPLATES_UNDER_SVN" == "1" ]; then
         ( cd $TEMPLATE_BASE.d && svn add $file )
         echo $BASENAME: please run jail-commit to add $file into the svn repository