aboutsummaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src')
-rwxr-xr-xtrunk/src/templatepkg9
1 files changed, 7 insertions, 2 deletions
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