does no display repo in subdirs
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 20 Mar 2008 17:05:52 +0000 (17:05 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 20 Mar 2008 17:05:52 +0000 (17:05 +0000)
mirroring/mirror.sh

index e7343f4..e4b1e16 100755 (executable)
@@ -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