From 57b65b799473a8aa93c76782a7a801d8a9a8bcbe Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 13 Oct 2009 20:28:55 +0000 Subject: [PATCH] code cleanup --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 4f34442..2ad69aa 100755 --- a/inxi +++ b/inxi @@ -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 )"