From 79ba1a692e94d0661895214106e1cfe58565f432 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 6 Apr 2007 01:10:25 +0000 Subject: templatepkg: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@276 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/templatepkg | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'trunk/src/templatepkg') diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index c8e02c7..7a62563 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -249,8 +249,13 @@ function template_create { return 1 fi - cat $orig_template/$ROOT.perms > $TEMPLATE_BASE.perms - cat $orig_template/$ROOT.template > $TEMPLATE_BASE.template + if [ -f "$orig_template/$ROOT.perms" ] then + cat $orig_template/$ROOT.perms > $TEMPLATE_BASE.perms + fi + + if [ -f "$orig_template/$ROOT.template" ]; then + cat $orig_template/$ROOT.template > $TEMPLATE_BASE.template + fi if use_svn && [ -d "$orig_template/.svn" ]; then -- cgit v1.2.3