mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
some line fixes branch one
This commit is contained in:
parent
ecb6bad821
commit
dc212c8a06
10
inxi
10
inxi
|
@ -3,7 +3,7 @@
|
|||
#### Script Name: inxi
|
||||
#### Version: 2.1.8
|
||||
#### Date: 2014-03-24
|
||||
#### Patch Number: 02-b1
|
||||
#### Patch Number: 03-b2
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
########################################################################
|
||||
|
@ -9629,16 +9629,18 @@ print_graphics_data()
|
|||
part_1_data="${C1}Card$SEP3${C2} Failed to Detect Video Card! "
|
||||
fi
|
||||
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
|
||||
graphics_data=$( create_print_line "$line_starter" "$part_1_data" )
|
||||
print_screen_output "$graphics_data"
|
||||
part_1_data=''
|
||||
line_starter=' '
|
||||
echo 1
|
||||
fi
|
||||
graphics_data=$( create_print_line "$line_starter" "$part_1_data$part_2_data" )
|
||||
print_screen_output "$graphics_data"
|
||||
echo 2
|
||||
fi
|
||||
line_starter=' '
|
||||
graphics_data=''
|
||||
|
@ -9652,11 +9654,13 @@ print_graphics_data()
|
|||
print_screen_output "$graphics_data"
|
||||
line_starter=' '
|
||||
graphics_data=$part_2_data
|
||||
echo 3
|
||||
fi
|
||||
if [[ -n ${graphics_data%% } ]];then
|
||||
graphics_data=$( create_print_line "$line_starter" "$graphics_data${CN}" )
|
||||
print_screen_output "$graphics_data"
|
||||
line_starter=' '
|
||||
echo 4
|
||||
fi
|
||||
# if [[ -z $glx_renderer || -z $glx_version ]];then
|
||||
# b_is_mesa='true'
|
||||
|
|
Loading…
Reference in a new issue