Fix printing of filenames with whitespace in check-files (rhbz#430428)
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 28 Jan 2008 07:20:33 +0000 (09:20 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 28 Jan 2008 07:20:33 +0000 (09:20 +0200)
scripts/check-files

index cc7b944..b397f1c 100755 (executable)
@@ -20,7 +20,8 @@ FILES_RPM=`mktemp $TMPDIR/rpmXXXXXX`
 find $RPM_BUILD_ROOT -type f -o -type l | LC_ALL=C sort > $FILES_DISK
 LC_ALL=C sort > $FILES_RPM
 
-for f in `diff -d "$FILES_DISK" "$FILES_RPM" | grep "^< " | cut -c3-`; do
+diff -d "$FILES_DISK" "$FILES_RPM" | grep "^< " | cut -c3- | 
+while read f; do
        echo $f | sed -e "s#^$RPM_BUILD_ROOT#   #g"
 done