From 521bc410404f8ea4c6395f91c9a887a64ddecaa6 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 26 May 2011 00:08:47 +0000 Subject: [PATCH] final extra white space bug fix --- inxi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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