diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 01:10:25 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 01:10:25 +0000 |
commit | 79ba1a692e94d0661895214106e1cfe58565f432 (patch) | |
tree | 5f2c6482a7fcbc990d3c1a1d3eb4a015552ec001 /trunk/src/templatepkg | |
parent | 755b7410a2f4807828f8ea358d3ba70d285d2e00 (diff) | |
download | simplepkg-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
Diffstat (limited to 'trunk/src/templatepkg')
-rwxr-xr-x | trunk/src/templatepkg | 9 |
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 |