patch, moved gcc of kernel to (bits area.

This commit is contained in:
inxi-svn 2011-06-18 22:23:23 +00:00
parent 3ac997b887
commit c8c5ff2eea

27
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi #### Script Name: inxi
#### version: 1.7.2 #### version: 1.7.2
#### Date: June 17 2011 #### Date: June 17 2011
#### Patch Number: 00 #### Patch Number: 01
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
######################################################################## ########################################################################
@ -7349,24 +7349,25 @@ print_system_data()
desktop_type='Console' desktop_type='Console'
fi fi
de_distro_string="${C1}$desktop_type${C2} $desktop_environment ${C1}Distro${C2} $distro" 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 if [[ $B_EXTRA_DATA == 'true' ]];then
gcc_string=$( get_gcc_version ) gcc_string=$( get_gcc_version )
if [[ -n $gcc_string ]];then if [[ -n $gcc_string ]];then
gcc_string=" ${C1}gcc${C2} $gcc_string" gcc_string=" ${C1}gcc${C2} $gcc_string"
fi fi
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 if [[ $( wc -c <<< "$host_kernel_string$de_distro_string" ) -lt $line_max ]];then
system_data="$host_kernel_string$de_distro_string" system_data="$host_kernel_string$de_distro_string"