mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
small bug fix in awk, now will output whole usb line
This commit is contained in:
parent
7fd903ca68
commit
10f94c950f
2
inxi
2
inxi
|
@ -1405,7 +1405,7 @@ get_audio_data()
|
||||||
usb_data=$( lsusb -v 2>/dev/null | grep "$usb_id" )
|
usb_data=$( lsusb -v 2>/dev/null | grep "$usb_id" )
|
||||||
usb_data=$( gawk '{
|
usb_data=$( gawk '{
|
||||||
gsub( /,/, " ", $0 )
|
gsub( /,/, " ", $0 )
|
||||||
for( i=7; i < NF; i++ ) {
|
for( i=7; i <= NF; i++ ) {
|
||||||
printf( $i " " )
|
printf( $i " " )
|
||||||
}
|
}
|
||||||
}' <<< "$usb_data" )
|
}' <<< "$usb_data" )
|
||||||
|
|
Loading…
Reference in a new issue