tweaking the output slightly

This commit is contained in:
inxi-svn 2011-06-24 18:11:55 +00:00
parent 01bb3f205c
commit ac82ea3e8d

6
inxi
View file

@ -7484,7 +7484,7 @@ print_system_data()
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
# check for 64 bit first # check for 64 bit first
@ -7493,7 +7493,7 @@ print_system_data()
else else
bits="32" bits="32"
fi fi
bits="(${gcc_string}${bits} bit)" bits=" (${bits} bit${gcc_string})"
if [[ $B_SHOW_HOST == 'true' ]];then if [[ $B_SHOW_HOST == 'true' ]];then
if [[ -z $HOSTNAME ]];then if [[ -z $HOSTNAME ]];then
if [[ -n $( type p hostname ) ]];then if [[ -n $( type p hostname ) ]];then
@ -7506,7 +7506,7 @@ print_system_data()
host_string="${C1}Host${C2} $host_name " host_string="${C1}Host${C2} $host_name "
system_data=$( create_print_line "System:" "${C1}Host${C2} $host_name ${C1}Kernel${C2}" ) system_data=$( create_print_line "System:" "${C1}Host${C2} $host_name ${C1}Kernel${C2}" )
fi fi
host_kernel_string="$host_string${C1}Kernel${C2} $current_kernel $bits " host_kernel_string="$host_string${C1}Kernel${C2} $current_kernel$bits "
if [[ $( calculate_line_length "$host_kernel_string$de_distro_string" ) -lt $LINE_MAX ]];then if [[ $( calculate_line_length "$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"
system_data=$( create_print_line "System:" "$system_data" ) system_data=$( create_print_line "System:" "$system_data" )