From d60c10b53f575d1c4ef069c23eb11954ff790f07 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Sat, 24 Dec 2016 17:41:32 -0800 Subject: [PATCH] tiny gensub cleanup --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index b5263b1..701efb8 100755 --- a/inxi +++ b/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 }