From 77763f73862194c22101192217ea35afcaf26695 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 1 Feb 2010 06:33:41 +0000 Subject: [PATCH] fixed variable name --- inxi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inxi b/inxi index fd74966..3633e13 100755 --- a/inxi +++ b/inxi @@ -3162,7 +3162,7 @@ get_partition_data_advanced() get_repo_data() { eval $LOGFS - local repo_file='' repo_data_working='' repo_data_working2='' + local repo_file='' repo_data_working='' repo_data_working2='' repo_line='' local apt_file='/etc/apt/sources.list' yum_repo_dir='/etc/yum.repos.d/' yum_conf='/etc/yum.conf' local pacman_conf='/etc/pacman.conf' pacman_repo_dir='/etc/pacman.d/' pisi_dir='/etc/pisi/' @@ -3247,14 +3247,14 @@ $repo_data_working" # now we need to create the structure: repo info: repo path # we do that by looping through the lines of the output and then # putting it back into the : format print repos expects to see - while read line + while read repo_line do # dump empty lines... - line=$( sed 's|^[[:space:]]$||g' <<< $line ) - if [[ -n $( grep '://' <<< $line ) ]];then - repo_data_working="$repo_data_working:$line\n" + repo_line=$( sed 's|^[[:space:]]$||g' <<< $repo_line ) + if [[ -n $( grep '://' <<< $repo_line ) ]];then + repo_data_working="$repo_data_working:$repo_line\n" else - repo_data_working="$repo_data_working$line" + repo_data_working="$repo_data_working$repo_line" fi done <<< "$REPO_DATA" # echo and execute the line breaks inserted