diff --git a/inxi b/inxi index 3247e8c..19a7649 100755 --- a/inxi +++ b/inxi @@ -6030,7 +6030,7 @@ print_machine_data() fi mobo_line="${C1}Mobo${C2} $mobo_vendor ${C1}model${C2} $mobo_model$mobo_version$mobo_serial" bios_line="${C1}Bios${C2} $bios_vendor ${C1}version${C2} $bios_version ${C1}date${C2} $bios_date" - if [[ -n $mobo_line && -n $bios_line && $( wc -c <<< "$mobo_line$bios_line" ) -lt $line_max ]];then + if [[ $( wc -c <<< "$mobo_line$bios_line" ) -lt $line_max ]];then mobo_line="$mobo_line $bios_line" bios_line='' fi @@ -6055,7 +6055,7 @@ print_machine_data() product_serial=" ${C1}serial${C2} ${A_MACHINE_DATA[3]} " fi system_line="${C1}System${C2} $system_vendor ${C1}product${C2} $product_name$product_version$product_serial" - if [[ -n $system_line && -n $chassis_line && $( wc -c <<< "$system_line$chassis_line" ) -lt $line_max ]];then + if [[ -n $chassis_line && $( wc -c <<< "$system_line$chassis_line" ) -lt $line_max ]];then system_line="$system_line $chassis_line" chassis_line='' fi