mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
fixed a variable name
This commit is contained in:
parent
5b384610a0
commit
0542586dac
10
inxi
10
inxi
|
@ -12799,7 +12799,7 @@ print_graphics_data()
|
||||||
|
|
||||||
# set A_GLX_DATA
|
# set A_GLX_DATA
|
||||||
get_graphics_glx_data
|
get_graphics_glx_data
|
||||||
local opengl_renderer="${A_GLX_DATA[0]}"
|
local glx_renderer="${A_GLX_DATA[0]}"
|
||||||
local glx_version="${A_GLX_DATA[1]}"
|
local glx_version="${A_GLX_DATA[1]}"
|
||||||
# this can contain a long No case debugging message, so it's being sliced off
|
# this can contain a long No case debugging message, so it's being sliced off
|
||||||
# note: using grep -ioE '(No|Yes)' <<< ${A_GLX_DATA[2]} did not work in Arch, no idea why
|
# note: using grep -ioE '(No|Yes)' <<< ${A_GLX_DATA[2]} did not work in Arch, no idea why
|
||||||
|
@ -12986,15 +12986,15 @@ print_graphics_data()
|
||||||
print_screen_output "$graphics_data"
|
print_screen_output "$graphics_data"
|
||||||
line_starter=' '
|
line_starter=' '
|
||||||
fi
|
fi
|
||||||
# if [[ -z $opengl_renderer || -z $glx_version ]];then
|
# if [[ -z $glx_renderer || -z $glx_version ]];then
|
||||||
# b_is_mesa='true'
|
# b_is_mesa='true'
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
## note: if glx render or display_version have no content, then mesa is true
|
## note: if glx render or display_version have no content, then mesa is true
|
||||||
# if [[ $B_SHOW_DISPLAY_DATA == 'true' ]] && [[ $b_is_mesa != 'true' ]];then
|
# if [[ $B_SHOW_DISPLAY_DATA == 'true' ]] && [[ $b_is_mesa != 'true' ]];then
|
||||||
if [[ $B_SHOW_DISPLAY_DATA == 'true' && $B_ROOT != 'true' ]];then
|
if [[ $B_SHOW_DISPLAY_DATA == 'true' && $B_ROOT != 'true' ]];then
|
||||||
if [[ -z $opengl_renderer ]];then
|
if [[ -z $glx_renderer ]];then
|
||||||
opengl_renderer='N/A'
|
glx_renderer='N/A'
|
||||||
fi
|
fi
|
||||||
if [[ -z $glx_version ]];then
|
if [[ -z $glx_version ]];then
|
||||||
glx_version='N/A'
|
glx_version='N/A'
|
||||||
|
@ -13011,7 +13011,7 @@ print_graphics_data()
|
||||||
if [[ $B_HANDLE_CORRUPT_DATA == 'true' || $B_EXTRA_DATA == 'true' ]];then
|
if [[ $B_HANDLE_CORRUPT_DATA == 'true' || $B_EXTRA_DATA == 'true' ]];then
|
||||||
direct_render_string=" ${C1}Direct Rendering$SEP3${C2} $direct_rendering"
|
direct_render_string=" ${C1}Direct Rendering$SEP3${C2} $direct_rendering"
|
||||||
fi
|
fi
|
||||||
part_1_data="${C1}GLX Renderer$SEP3${C2} $opengl_renderer "
|
part_1_data="${C1}GLX Renderer$SEP3${C2} $glx_renderer "
|
||||||
part_2_data="${C1}GLX Version$SEP3${C2} $glx_version$direct_render_string"
|
part_2_data="${C1}GLX Version$SEP3${C2} $glx_version$direct_render_string"
|
||||||
# echo $line_starter
|
# echo $line_starter
|
||||||
if [[ $( calculate_line_length "$part_1_data$part_2_data" ) -gt $COLS_INNER ]];then
|
if [[ $( calculate_line_length "$part_1_data$part_2_data" ) -gt $COLS_INNER ]];then
|
||||||
|
|
Loading…
Reference in a new issue