From b94e4146fe0dc2e0f5355b613aa035d962aef180 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 25 May 2011 22:04:21 +0000 Subject: [PATCH] next step in fix --- inxi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 6d5a3e6..4a0c036 100755 --- a/inxi +++ b/inxi @@ -5540,9 +5540,11 @@ print_gfx_data() 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" ) - print_screen_output "$gfx_data" - line_starter=' ' + if [[ -n $gfx_data ]];then + gfx_data=$( create_print_line "$line_starter" "$gfx_data" ) + print_screen_output "$gfx_data" + line_starter=' ' + fi gfx_data=$( create_print_line "$line_starter" "$display_full_string" ) fi print_screen_output "$gfx_data"