aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-06 01:10:25 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-06 01:10:25 +0000
commit79ba1a692e94d0661895214106e1cfe58565f432 (patch)
tree5f2c6482a7fcbc990d3c1a1d3eb4a015552ec001
parent755b7410a2f4807828f8ea358d3ba70d285d2e00 (diff)
downloadsimplepkg-79ba1a692e94d0661895214106e1cfe58565f432.tar.gz
simplepkg-79ba1a692e94d0661895214106e1cfe58565f432.tar.bz2
templatepkg: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@276 04377dda-e619-0410-9926-eae83683ac58
-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