mirror of
https://github.com/smxi/inxi.git
synced 2025-01-31 18:12:21 +00:00
tiny gensub cleanup
This commit is contained in:
parent
d2986cbe8a
commit
d60c10b53f
4
inxi
4
inxi
|
@ -6269,8 +6269,8 @@ get_graphics_card_data()
|
|||
gsub(/'"$BAN_LIST_ARRAY"'/, " ", $NF)
|
||||
gsub(/^ +| +$/, "", $NF)
|
||||
gsub(/ [ \t]+/, " ", $NF)
|
||||
busId=gensub(/^([0-9a-f:\.]+) (.+)$/,"\\1","g",$1)
|
||||
trueCard=gensub(/(.*)\.([0-9]+)$/,"\\2","g",busId)
|
||||
busId=gensub(/^([0-9a-f:\.]+) (.+)$/,"\\1",1,$1)
|
||||
trueCard=gensub(/(.*)\.([0-9]+)$/,"\\2",1,busId)
|
||||
if ( trueCard == 0 ) {
|
||||
print $NF "," busId
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue