From 6198d63e391cca97ad93d0b62f73dbe84d059c74 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 13 Oct 2009 20:16:37 +0000 Subject: [PATCH] cleanup and error protection --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index 9ebd941..7a3bad4 100755 --- a/inxi +++ b/inxi @@ -3103,7 +3103,7 @@ get_repo_data() REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $apt_file $apt_file.d/*.list )" REPO_FILE_ID='apt sources' elif [[ -d $yum_repo_dir ]];then - for repo_file in $( ls $yum_repo_dir*.repo ) + for repo_file in $( ls $yum_repo_dir*.repo 2>/dev/null ) do repo_data_working="$( gawk -v repoFile=$repo_file ' BEGIN {