some line fixes branch one

This commit is contained in:
inxi-svn 2014-03-24 22:54:13 +00:00
parent ecb6bad821
commit dc212c8a06

10
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi #### Script Name: inxi
#### Version: 2.1.8 #### Version: 2.1.8
#### Date: 2014-03-24 #### Date: 2014-03-24
#### Patch Number: 02-b1 #### Patch Number: 03-b2
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
######################################################################## ########################################################################
@ -9629,16 +9629,18 @@ print_graphics_data()
part_1_data="${C1}Card$SEP3${C2} Failed to Detect Video Card! " part_1_data="${C1}Card$SEP3${C2} Failed to Detect Video Card! "
fi fi
graphics_data="$part_1_data$part_2_data" graphics_data="$part_1_data$part_2_data"
# remove all white spaces from line #
if [[ -n ${graphics_data%% } ]];then if [[ -n ${graphics_data% } ]];then
if [[ $( calculate_line_length "$graphics_data" ) -gt $COLS_INNER ]];then if [[ $( calculate_line_length "$graphics_data" ) -gt $COLS_INNER ]];then
graphics_data=$( create_print_line "$line_starter" "$part_1_data" ) graphics_data=$( create_print_line "$line_starter" "$part_1_data" )
print_screen_output "$graphics_data" print_screen_output "$graphics_data"
part_1_data='' part_1_data=''
line_starter=' ' line_starter=' '
echo 1
fi fi
graphics_data=$( create_print_line "$line_starter" "$part_1_data$part_2_data" ) graphics_data=$( create_print_line "$line_starter" "$part_1_data$part_2_data" )
print_screen_output "$graphics_data" print_screen_output "$graphics_data"
echo 2
fi fi
line_starter=' ' line_starter=' '
graphics_data='' graphics_data=''
@ -9652,11 +9654,13 @@ print_graphics_data()
print_screen_output "$graphics_data" print_screen_output "$graphics_data"
line_starter=' ' line_starter=' '
graphics_data=$part_2_data graphics_data=$part_2_data
echo 3
fi fi
if [[ -n ${graphics_data%% } ]];then if [[ -n ${graphics_data%% } ]];then
graphics_data=$( create_print_line "$line_starter" "$graphics_data${CN}" ) graphics_data=$( create_print_line "$line_starter" "$graphics_data${CN}" )
print_screen_output "$graphics_data" print_screen_output "$graphics_data"
line_starter=' ' line_starter=' '
echo 4
fi fi
# if [[ -z $glx_renderer || -z $glx_version ]];then # if [[ -z $glx_renderer || -z $glx_version ]];then
# b_is_mesa='true' # b_is_mesa='true'