diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-04-09 17:45:42 +0200 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-04-09 17:48:13 +0200 |
commit | 1b8f3147e4eebfe6787cc00345934c9d6ac0941f (patch) | |
tree | 79ff9d34af3d1cfa072f207fd333d9cda67e3ed2 /scripts | |
parent | 24dda1debeb9f2f1b9a7171c09761558516ded13 (diff) | |
download | anaconda-1b8f3147e4eebfe6787cc00345934c9d6ac0941f.tar.gz anaconda-1b8f3147e4eebfe6787cc00345934c9d6ac0941f.tar.xz anaconda-1b8f3147e4eebfe6787cc00345934c9d6ac0941f.zip |
Be as clean as possible when looking for files/directories. (#431392)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/upd-instroot | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 9c5187c6a..29f2ec831 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -126,15 +126,15 @@ expandPackageSet() { cat $KEEPFILES | while read spec ; do #Pull off path path=`echo "$spec" | sed 's,\([^[*\?]*\)/.*,\1,'` - for filespec in `find ./$path -path "./$spec"` ; do + for filespec in `find ./$path -path "./$spec" 2> /dev/null` ; do if [ ! -e $filespec ]; then continue elif [ ! -d $filespec ]; then instFile $filespec $PKGDEST else - for i in `find $filespec -type f` ; do instFile $i $PKGDEST ; done - for i in `find $filespec -type l` ; do instFile $i $PKGDEST ; done - for d in `find $filespec -type d` ; do instDir $d $PKGDEST ; done + for i in `find $filespec -type f 2> /dev/null` ; do instFile $i $PKGDEST ; done + for i in `find $filespec -type l 2> /dev/null` ; do instFile $i $PKGDEST ; done + for d in `find $filespec -type d 2> /dev/null` ; do instDir $d $PKGDEST ; done fi done done |