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