]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
jail-commit: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 9 Feb 2007 20:33:00 +0000 (20:33 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 9 Feb 2007 20:33:00 +0000 (20:33 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@171 04377dda-e619-0410-9926-eae83683ac58

src/jail-commit

index 6c66cd8cd6964da3e54156f31509a48c1aa24a76..8de547c9059030c6d4670aa9dc9406fffd932abf 100755 (executable)
@@ -45,11 +45,11 @@ function template_merge {
       if ! diff $file $1/$file; then
         echo updating $file
         cp -af $1/$file $file
-        perms="`numeric_perm $1/$file`"
-        owner="`get_owner $1/$file`"
-        group="`get_group $1/$file`"
-        echo $file\;$owner\;$group\;$perms >> $TEMPLATE_BASE.perms
       fi
+      perms="`numeric_perm $1/$file`"
+      owner="`get_owner $1/$file`"
+      group="`get_group $1/$file`"
+      echo "$file;$owner;$group;$perms" >> $TEMPLATE_BASE.perms
     fi
   done