diff --git a/inxi b/inxi index a0498b5..047614b 100755 --- a/inxi +++ b/inxi @@ -3,7 +3,7 @@ #### Script Name: inxi #### version: 1.7.8 #### Date: June 22 2011 -#### Patch Number: 04-debug +#### Patch Number: 05-debug ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -2714,7 +2714,9 @@ get_audio_usb_data() IFS=$'\n' lsusb_path=$( type -p lsusb ) - lsusb_data=$( $lsusb_path -v 2>/dev/null ) + if [[ -n lsusb_path ]];then + lsusb_data=$( $lsusb_path -v 2>/dev/null ) + fi log_function_data 'raw' "usb_data:\n$lsusb_data" if [[ -n $lsusb_data ]];then # for every sound card symlink in /proc/asound - display information about it @@ -2765,7 +2767,7 @@ get_audio_usb_data() eval $LOGFE } -get_audio_usb_data +time get_audio_usb_data get_audio_alsa_data() { eval $LOGFS