mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
fixed typo in awk in get gfx x data
This commit is contained in:
parent
f027067ddf
commit
fe2fdf78e5
3
inxi
3
inxi
|
@ -170,6 +170,7 @@ DISTROS_PRIMARY="gentoo-release mandrake-release redhat-release slackware-versio
|
||||||
# 00000000 01 01 6f 6e 65 20 74 77 6f 0a |..one two.|
|
# 00000000 01 01 6f 6e 65 20 74 77 6f 0a |..one two.|
|
||||||
A_NORMAL_BANS=( corporation communications gmbh technologies technology group $'\2'"\<ltd\>" ltd. $'\2'"\<inc\>" inc. $'\2'\<co\> co. "(tm)" "(r)" $'\2'"\(rev ..\)" )
|
A_NORMAL_BANS=( corporation communications gmbh technologies technology group $'\2'"\<ltd\>" ltd. $'\2'"\<inc\>" inc. $'\2'\<co\> co. "(tm)" "(r)" $'\2'"\(rev ..\)" )
|
||||||
A_CPU_BANS=( @ cpu deca 'dual core' 'tri core' 'quad core' ennea genuine hepta hexa multi octa penta 'processor' processor single triple $'\2'"[0-9.]+ *[MmGg][Hh][Zz]" )
|
A_CPU_BANS=( @ cpu deca 'dual core' 'tri core' 'quad core' ennea genuine hepta hexa multi octa penta 'processor' processor single triple $'\2'"[0-9.]+ *[MmGg][Hh][Zz]" )
|
||||||
|
# after processing, the ban arrays will be put into these:
|
||||||
BAN_LIST_NORMAL=''
|
BAN_LIST_NORMAL=''
|
||||||
BAN_LIST_CPU=''
|
BAN_LIST_CPU=''
|
||||||
|
|
||||||
|
@ -1109,7 +1110,7 @@ get_graphics_x_data()
|
||||||
x_vendor=$( xdpyinfo | gawk -F': +' '
|
x_vendor=$( xdpyinfo | gawk -F': +' '
|
||||||
BEGIN { IGNORECASE=1 }
|
BEGIN { IGNORECASE=1 }
|
||||||
/vendor string/ {
|
/vendor string/ {
|
||||||
gsub(/the|,|inc|foundation|project|coorperation/, "", $2)
|
gsub(/the|inc|foundation|project|corporation/, "", $2)
|
||||||
gsub(/,/, " ", $2)
|
gsub(/,/, " ", $2)
|
||||||
gsub(/^ +| +$/, "", $2)
|
gsub(/^ +| +$/, "", $2)
|
||||||
gsub(/ [ \t]+/, " ", $2)
|
gsub(/ [ \t]+/, " ", $2)
|
||||||
|
|
Loading…
Reference in a new issue