cleanup and white space protection for line starters

This commit is contained in:
inxi-svn 2009-10-12 23:03:05 +00:00
parent 205d470410
commit 0f35a6b1fa

5
inxi
View file

@ -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