From: Thierry Parmentelat Date: Thu, 20 Mar 2008 17:05:52 +0000 (+0000) Subject: does no display repo in subdirs X-Git-Tag: 4.2-rc2~122 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f070fcb49ea7ee36968474d7094f9a8ee7e53cd6;p=build.git does no display repo in subdirs --- diff --git a/mirroring/mirror.sh b/mirroring/mirror.sh index e7343f4e..e4b1e166 100755 --- a/mirroring/mirror.sh +++ b/mirroring/mirror.sh @@ -55,7 +55,7 @@ function do_display () { dir=/etc/vservers/.distributions/$distro/yum.repos.d/ if [ -d $dir ] ; then echo "====================" Contents of $dir - find $dir -name '*.repo' | xargs head --verbose --lines=1000 + ls $dir/*.repo 2> /dev/null | xargs head --verbose --lines=1000 else echo "====================" $dir does not exist fi