From 330a79d11c48aa8920c4efd2504fe4cc3f762a47 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 9 Feb 2007 21:14:37 +0000 Subject: templatepkg: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@173 04377dda-e619-0410-9926-eae83683ac58 --- src/templatepkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/templatepkg b/src/templatepkg index 84b2ac9..1634d85 100755 --- a/src/templatepkg +++ b/src/templatepkg @@ -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 -- cgit v1.2.3