mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
code cleanup
This commit is contained in:
parent
0c7821172d
commit
57b65b7994
4
inxi
4
inxi
|
@ -3096,8 +3096,8 @@ get_partition_data_advanced()
|
||||||
# is useful to create output that's neat.
|
# is useful to create output that's neat.
|
||||||
get_repo_data()
|
get_repo_data()
|
||||||
{
|
{
|
||||||
local repo_file=''
|
local repo_file='' repo_data_working=''
|
||||||
local repo_data_working='' apt_file='/etc/apt/sources.list' yum_repo_dir='/etc/yum.repos.d/'
|
local apt_file='/etc/apt/sources.list' yum_repo_dir='/etc/yum.repos.d/'
|
||||||
|
|
||||||
if [[ -f $apt_file || -d $apt_file.d ]];then
|
if [[ -f $apt_file || -d $apt_file.d ]];then
|
||||||
REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $apt_file $apt_file.d/*.list )"
|
REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $apt_file $apt_file.d/*.list )"
|
||||||
|
|
Loading…
Reference in a new issue