diff --git a/inxi b/inxi index 471e988..9ca25fd 100755 --- a/inxi +++ b/inxi @@ -1032,7 +1032,7 @@ get_audio_data() }' /proc/asound/cards ) ) fi IFS="$ORIGINAL_IFS" - echo ${A_AUDIO_DATA[@]} + # handle cases where card detection fails, like in PS3, where lspci gives no output, or headless boxes.. if [[ ${#A_AUDIO_DATA[@]} -eq 0 ]];then A_AUDIO_DATA[0]='Failed to Detect Sound Card!'