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