diff --git a/inxi b/inxi index 72fabec..f26bb28 100755 --- a/inxi +++ b/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++ } @@ -4039,7 +4041,7 @@ print_audio_data() port_data=" ${C1}at port$port_plural${C2} ${a_audio_working[2]}" fi if [[ -n ${a_audio_working[4]} && $B_EXTRA_DATA == 'true' ]];then - pci_bus_id="${C1}BusID:${C2} ${a_audio_working[4]}" + pci_bus_id=" ${C1}BusID:${C2} ${a_audio_working[4]}" fi audio_data="${C1}$card_one${C2} ${a_audio_working[0]}$alsa_driver$port_data$pci_bus_id" audio_data=$( create_print_line "Audio:" "$audio_data" ) @@ -4069,7 +4071,7 @@ print_audio_data() port_data=" ${C1}at port$port_plural${C2} ${a_audio_working[2]}" fi if [[ -n ${a_audio_working[4]} && $B_EXTRA_DATA == 'true' ]];then - pci_bus_id="${C1}BusID:${C2} ${a_audio_working[4]}" + pci_bus_id=" ${C1}BusID:${C2} ${a_audio_working[4]}" fi if [[ -n ${a_audio_working[0]} ]];then audio_data="${C1}Card-$(( $i + 1 ))${C2} ${a_audio_working[0]}$alsa_driver$port_data$pci_bus_id" @@ -4478,7 +4480,7 @@ print_networking_data() port_data=" ${C1}at port$port_plural${C2} ${a_network_working[2]}" fi if [[ -n ${a_network_working[4]} && $B_EXTRA_DATA == 'true' ]];then - pci_bus_id="${C1}BusID:${C2} ${a_network_working[4]}" + pci_bus_id=" ${C1}BusID:${C2} ${a_network_working[4]}" fi card_string='' @@ -4509,7 +4511,7 @@ print_networking_data() port_data=" ${C1}at port$port_plural${C2} ${a_network_working[2]}" fi if [[ -n ${a_network_working[4]} && $B_EXTRA_DATA == 'true' ]];then - pci_bus_id="${C1}BusID:${C2} ${a_network_working[4]}" + pci_bus_id=" ${C1}BusID:${C2} ${a_network_working[4]}" fi network_data="${C1}Card-$(( $i + 1 ))${C2} ${a_network_working[0]}$driver_data$port_data$pci_bus_id" network_data=$( create_print_line " " "$network_data" )