mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
cleanup and error protection
This commit is contained in:
parent
8171130329
commit
6198d63e39
2
inxi
2
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 {
|
||||
|
|
Loading…
Reference in a new issue