mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
cleaned up small trailing whitespace issue with ports output, put the cleanup where it belongs, in the data get function
This commit is contained in:
parent
a5b42c8fc0
commit
8ff14cda78
2
inxi
2
inxi
|
@ -1754,6 +1754,7 @@ get_audio_data()
|
|||
usePciBusId = aPciBusId[i]
|
||||
}
|
||||
# create array primary item for master array
|
||||
sub( / $/, "", usePorts ) # clean off trailing whitespace
|
||||
print a[j] "," useDrivers "," usePorts "," useModules "," usePciBusId
|
||||
j++
|
||||
}
|
||||
|
@ -2860,6 +2861,7 @@ get_networking_data()
|
|||
# create array primary item for master array
|
||||
# and strip out the counter again, this handled dual cards with same chipset
|
||||
sub( /~~[0-9]+$/, "", a[j] )
|
||||
sub( / $/, "", usePorts ) # clean off trailing whitespace
|
||||
print a[j] "," useDrivers "," usePorts "," useModules, "," usePciBusId
|
||||
j++
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue