mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
cleanup and white space protection for line starters
This commit is contained in:
parent
205d470410
commit
0f35a6b1fa
5
inxi
5
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
|
||||
|
|
Loading…
Reference in a new issue