From 0f35a6b1fa730ef3fd1284b414a13905c33351ce Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 12 Oct 2009 23:03:05 +0000 Subject: [PATCH] cleanup and white space protection for line starters --- inxi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index af6efc6..86dd6bf 100755 --- a/inxi +++ b/inxi @@ -4306,7 +4306,7 @@ print_repo_data() file_name_holder=$file_name b_print_next_line='true' else - repo_full="$file_content" + repo_full=$( echo $file_content ) # this will dump unwanted white space line starters fi # first line print Repos: if [[ $repo_count -eq 1 ]];then @@ -4317,7 +4317,8 @@ 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=$( create_print_line " " "$file_content" ) + repo_full=$( echo $file_content ) + repo_full=$( create_print_line " " "$repo_full" ) print_screen_output "$repo_full" b_print_next_line='false' fi