From f027067ddf9bb690dd121a61ec9263dcc1ad65f1 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 6 Nov 2008 21:18:11 +0000 Subject: [PATCH] cleanup --- inxi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index 5e33a17..535c55c 100755 --- a/inxi +++ b/inxi @@ -803,7 +803,7 @@ set_calculated_variables() get_audio_data() { local i='' - tt='nvidia' + IFS=$'\n' A_AUDIO_DATA=( $( echo "$lspci_data" | gawk -F': ' ' { IGNORECASE=1 } @@ -1189,7 +1189,8 @@ get_hard_drive_data() } ' /proc/scsi/scsi)) IFS="$ORIGINAL_IFS" - + + ## note: the output part of this should be in the print hdd data function, not here for (( i=0; i < ${#a_total_hdd[@]}; i++ )) do # this adds the (x) numbering in front of each disk found, and creates the full disk string @@ -1250,8 +1251,8 @@ get_hard_drive_data() get_lspci_data() { echo "$( lspci -v | awk '{ - gsub(/\(prog-if[^)]*\)/,"") - print + gsub(/\(prog-if[^)]*\)/,"") + print }' )" }