code cleanup

This commit is contained in:
inxi-svn 2009-10-13 20:28:55 +00:00
parent 0c7821172d
commit 57b65b7994

4
inxi
View file

@ -3096,8 +3096,8 @@ get_partition_data_advanced()
# is useful to create output that's neat.
get_repo_data()
{
local repo_file=''
local repo_data_working='' apt_file='/etc/apt/sources.list' yum_repo_dir='/etc/yum.repos.d/'
local repo_file='' repo_data_working=''
local apt_file='/etc/apt/sources.list' yum_repo_dir='/etc/yum.repos.d/'
if [[ -f $apt_file || -d $apt_file.d ]];then
REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $apt_file $apt_file.d/*.list )"