diff --git a/inxi b/inxi index 7f82ab4..6d5a3e6 100755 --- a/inxi +++ b/inxi @@ -5537,7 +5537,7 @@ print_gfx_data() else gfx_data="${C1}Card:${C2} Failed to Detect Video Card! " fi - if [[ $( wc -c <<< ${gfx_data}$display_full_string ) -lt $line_max ]];then + if [[ -n $gfx_data && $( wc -c <<< ${gfx_data}$display_full_string ) -lt $line_max ]];then gfx_data=$( create_print_line "$line_starter" "${gfx_data}$display_full_string" ) else gfx_data=$( create_print_line "$line_starter" "$gfx_data" )