diff --git a/inxi b/inxi index f195088..16e4fda 100755 --- a/inxi +++ b/inxi @@ -3,7 +3,7 @@ #### Script Name: inxi #### version: 1.7.2 #### Date: June 17 2011 -#### Patch Number: 00 +#### Patch Number: 01 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -7349,24 +7349,25 @@ print_system_data() desktop_type='Console' fi de_distro_string="${C1}$desktop_type${C2} $desktop_environment ${C1}Distro${C2} $distro" - # check for 64 bit first - if [[ -n $( uname -m | grep -o 'x86_64' ) ]];then - bits="(64 bit)" - else - bits="(32 bit)" - fi - - if [[ $B_SHOW_HOST == 'true' ]];then - host_string="${C1}Host${C2} $host_name " - system_data=$( create_print_line "System:" "${C1}Host${C2} $host_name ${C1}Kernel${C2}" ) - fi if [[ $B_EXTRA_DATA == 'true' ]];then gcc_string=$( get_gcc_version ) if [[ -n $gcc_string ]];then gcc_string=" ${C1}gcc${C2} $gcc_string" fi fi - host_kernel_string="$host_string${C1}Kernel${C2} $current_kernel $bits$gcc_string " + # check for 64 bit first + if [[ -n $( uname -m | grep -o 'x86_64' ) ]];then + bits="(64 bit$gcc_string)" + else + bits="(32 bit$gcc_string)" + fi + + if [[ $B_SHOW_HOST == 'true' ]];then + host_string="${C1}Host${C2} $host_name " + system_data=$( create_print_line "System:" "${C1}Host${C2} $host_name ${C1}Kernel${C2}" ) + fi + + host_kernel_string="$host_string${C1}Kernel${C2} $current_kernel $bits " if [[ $( wc -c <<< "$host_kernel_string$de_distro_string" ) -lt $line_max ]];then system_data="$host_kernel_string$de_distro_string"