diff --git a/inxi b/inxi index 86dd6bf..1a75c6a 100755 --- a/inxi +++ b/inxi @@ -4300,13 +4300,15 @@ print_repo_data() (( repo_count++ )) file_name=$( cut -d ':' -f 1 <<< $repo_line ) file_content=$( cut -d ':' -f 2-6 <<< $repo_line ) + # this will dump unwanted white space line starters + file_content=$( echo $file_content ) # check file name, if different, update the holder for print out if [[ $file_name != $file_name_holder ]];then repo_full="${C1}Contents of sources file:${C2} $file_name" file_name_holder=$file_name b_print_next_line='true' else - repo_full=$( echo $file_content ) # this will dump unwanted white space line starters + repo_full=$file_content fi # first line print Repos: if [[ $repo_count -eq 1 ]];then @@ -4317,8 +4319,7 @@ print_repo_data() print_screen_output "$repo_full" # this prints the content of the file as well as the file name if [[ $b_print_next_line == 'true' ]];then - repo_full=$( echo $file_content ) - repo_full=$( create_print_line " " "$repo_full" ) + repo_full=$( create_print_line " " "$file_content" ) print_screen_output "$repo_full" b_print_next_line='false' fi