Trying awk fix for extra line in asound/versions

This commit is contained in:
inxi-svn 2008-11-14 20:12:56 +00:00
parent d7839c49e1
commit 31c692cc07

7
inxi
View file

@ -1,8 +1,8 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 0.5.31-b-1-t-1
#### Date: November 13 2008
#### version: 0.5.31-b-1-t-2
#### Date: November 14 2008
########################################################################
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
#### As time permits functionality improvements and recoding will occur.
@ -1050,10 +1050,11 @@ get_audio_alsa_data()
# now we'll get the alsa data if the file exists
if [[ -e /proc/asound/version ]];then
alsa_data=$( gawk '{
alsa_data=$( gawk '
{ IGNORECASE=1 }
# some alsa strings have the build date in (...)
# also remove trailing .
$0 !~ /compile/ {
gsub( "Driver | [(].*[)]|\.$","",$0 )
gsub(/,/, " ", $0)
gsub(/^ +| +$/, "", $0)