From 52829c43c79ff843eb2d7da819ff530d46e1ec60 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 14 Nov 2008 01:41:56 +0000 Subject: [PATCH] output tweaks --- inxi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 126e1f9..1be42ad 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.5.27-b-1-t-2 +#### version: 0.5.27-b-1-t-3 #### Date: November 13 2008 ######################################################################## #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif @@ -1023,7 +1023,8 @@ get_audio_data() A_AUDIO_DATA[$alsa_index]=$( gawk '{ { IGNORECASE=1 } # some alsa strings have the build date in (...) - gsub( "Driver | [(].*[)]","",$0 ) + # alsa remove trailing . + gsub( "Driver | [(].*[)]|\.$","",$0 ) gsub(/,/, " ", $0) gsub(/^ +| +$/, "", $0) gsub(/ [ \t]+/, " ", $0)