final extra white space bug fix

This commit is contained in:
inxi-svn 2011-05-26 00:08:47 +00:00
parent 4c37defd0c
commit 521bc41040

7
inxi
View file

@ -3131,18 +3131,19 @@ get_graphics_glx_data()
IGNORECASE=1 IGNORECASE=1
} }
/opengl renderer/ { /opengl renderer/ {
if ( $2 ~ /mesa/ ) {
# Allow all mesas
# if ( $2 ~ / r[3-9][0-9][0-9] / ) {
gsub(/'"$BAN_LIST_NORMAL"'/, "", $2) gsub(/'"$BAN_LIST_NORMAL"'/, "", $2)
gsub(/ [ \t]+/, " ", $2) # get rid of the created white spaces gsub(/ [ \t]+/, " ", $2) # get rid of the created white spaces
gsub(/^ +| +$/, "", $2) gsub(/^ +| +$/, "", $2)
if ( $2 ~ /mesa/ ) {
# Allow all mesas
# if ( $2 ~ / r[3-9][0-9][0-9] / ) {
a[$2] a[$2]
# this counter failed in one case, a bug, and is not needed now # this counter failed in one case, a bug, and is not needed now
# f++ # f++
# } # }
next next
} }
$2 && a[$2] $2 && a[$2]
} }
# dropping all conditions from this test to just show full mesa information # dropping all conditions from this test to just show full mesa information