diff options
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 |