diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-09 21:14:37 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-09 21:14:37 +0000 |
commit | 330a79d11c48aa8920c4efd2504fe4cc3f762a47 (patch) | |
tree | feec752f2f6bb7a2f3726763bd68c9bf3b0445b3 /src | |
parent | 445092e48149b74c5ec4e85a7c4b2a2d30f64cfa (diff) | |
download | simplepkg-330a79d11c48aa8920c4efd2504fe4cc3f762a47.tar.gz simplepkg-330a79d11c48aa8920c4efd2504fe4cc3f762a47.tar.bz2 |
templatepkg: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@173 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-x | src/templatepkg | 3 |
1 files changed, 2 insertions, 1 deletions
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 |