cleaned up printout consistency

This commit is contained in:
inxi-svn 2011-05-23 23:08:12 +00:00
parent f249b4f319
commit 2b9a312eb3

4
inxi
View file

@ -3203,7 +3203,7 @@ get_graphics_driver()
xorg_log_data="$( cat $FILE_XORG_LOG )" xorg_log_data="$( cat $FILE_XORG_LOG )"
for driver in $driver_list for driver in $driver_list
do do
if [[ -n $( grep -s "[[:space:]]Loading.*${driver}_drv.so" <<< "$xorg_log_data" ) && -z $( grep -s "[[:space:]]Unloading.*${driver}_drv.so" <<< "$xorg_log_data" ) ]];then if [[ -n $( grep -s "[[:space:]]Loading.*${driver}_drv.so" <<< "$xorg_log_data" ) && -z $( grep -s "[[:space:]]Unloading.*${driver}_drv.so" <<< "$xorg_log_data" ) ]];then
driver_string="$driver_string$driver$spacer" driver_string="$driver_string$driver$spacer"
spacer=' ' spacer=' '
fi fi
@ -5418,7 +5418,7 @@ print_gfx_data()
elif [[ $( wc -w <<< $x_driver ) -gt 1 ]];then elif [[ $( wc -w <<< $x_driver ) -gt 1 ]];then
x_driver_plural='s' x_driver_plural='s'
fi fi
x_driver_string="${C1}driver$x_driver_plural:${C2} $x_driver " x_driver_string="${C1}driver$x_driver_plural${C2} $x_driver "
# some basic error handling: # some basic error handling:
if [[ -z $screen_resolution ]];then if [[ -z $screen_resolution ]];then