diff --git a/inxi b/inxi index a463d06..30ff6fd 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.5.31-b-1-t-2 +#### version: 0.5.32-b-1-t-2 #### Date: November 14 2008 ######################################################################## #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif @@ -1006,7 +1006,10 @@ get_audio_data() print driver } }' /proc/asound/cards ) - fi + fi\ + # this is to safeguard against line breaks from results > 1, which if inserted into following + # array will create a false array entry. This is a hack, not a permanent solution. + alsa_driver=$( echo $alsa_driver ) # this isn't perfect, but if one card was found in lscpci, we're passing # this array constructor that card driver name. This should work for most people # but if you can think of anything better, please post the code patch