From f070fcb49ea7ee36968474d7094f9a8ee7e53cd6 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 20 Mar 2008 17:05:52 +0000 Subject: [PATCH] does no display repo in subdirs --- mirroring/mirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0