]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
tools: config-create: Cleanup typos and style in collector template
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 20 Jul 2014 21:10:46 +0000 (23:10 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 28 Jul 2014 04:35:56 +0000 (06:35 +0200)
No functional changes.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/jailhouse-config-collect.tmpl

index a298fb9a5b83cbd04053f7740b4754cf578c9b2a..9e98f9f7854ab7e77d7449974f7dcd79dde71df2 100644 (file)
 # Copying files and directories from /sys and /proc is surprisingly hard
 # it would be nice to use just one tool together with the list of files.
 # The main problem is that stat does not report the correct file sizes. In
-# procfs files seem to have a size of 0 while in sysfs they ofter appear
+# procfs files seem to have a size of 0 while in sysfs they often appear
 # bigger than they really are.
 # Archivers like tar/cpio etc. can not be used for procfs and sysfs.
-# This scripts first gets a temporary copy of all the files we want. After
+# This script first gets a temporary copy of all the files we want. After
 # copying the files can be archived with tar.
 
 set -e
@@ -37,13 +37,10 @@ rm -rf $tmpdir
 mkdir $tmpdir
 
 # copy all the files we need to a temporary directory first
-for f in $filelist
-do
-       if [ -f $f ]
-       then
+for f in $filelist; do
+       if [ -f $f ]; then
                dstdir=$tmpdir/$(dirname $f)
-               if [ ! -d $dstdir ]
-               then
+               if [ ! -d $dstdir ]; then
                        mkdir -p $dstdir
                fi
                cp -p $f $tmpdir/$f