From 8fdcc397a6ee68028ce615e2669e1b2c5b0d5598 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 25 May 2011 22:02:29 +0000 Subject: [PATCH] trying to fix that double line output bug --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" )