cleanup and error protection

This commit is contained in:
inxi-svn 2009-10-13 20:16:37 +00:00
parent 8171130329
commit 6198d63e39

2
inxi
View file

@ -3103,7 +3103,7 @@ get_repo_data()
REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $apt_file $apt_file.d/*.list )" REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $apt_file $apt_file.d/*.list )"
REPO_FILE_ID='apt sources' REPO_FILE_ID='apt sources'
elif [[ -d $yum_repo_dir ]];then 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 do
repo_data_working="$( gawk -v repoFile=$repo_file ' repo_data_working="$( gawk -v repoFile=$repo_file '
BEGIN { BEGIN {