]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 01:10:25 +0000 (01:10 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 01:10:25 +0000 (01:10 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@276 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index c8e02c710aa8c03be930fe44531f020934524c7b..7a62563409502a9c3539e440343cd7de62d4a117 100755 (executable)
@@ -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