mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
trying to fix that double line output bug
This commit is contained in:
parent
0cac507903
commit
8fdcc397a6
2
inxi
2
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" )
|
||||
|
|
Loading…
Reference in a new issue