fine tunings to avoid some possible errors

This commit is contained in:
inxi-svn 2011-07-06 03:54:25 +00:00
parent 0473aef0a0
commit 96784d1073

13
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.7.13
#### Date: July 5 2011
#### Patch Number: 07
#### Patch Number: 08
########################################################################
#### SPECIAL THANKS
########################################################################
@ -3485,6 +3485,8 @@ get_gcc_kernel_version()
get_gcc_system_version()
{
eval $LOGFS
local separator='' gcc_installed='' gcc_list='' gcc_others='' temp_array=''
local gcc_version=$(
gcc --version 2>/dev/null | sed -E 's/\([^\)]*\)//g' | gawk '
BEGIN {
@ -3495,10 +3497,11 @@ get_gcc_system_version()
exit
}'
)
local gcc_others=$( ls /usr/bin/gcc-* )
local separator='' gcc_installed='' gcc_list=''
# can't use xargs -l basename because not all systems support thats
if [[ $B_EXTRA_EXTRA_DATA == 'true' ]];then
gcc_others=$( ls /usr/bin/gcc-* 2>/dev/null )
if [[ -n $gcc_others ]];then
for item in $gcc_others
do
gcc_installed=$( basename $item | gawk -F '-' '
@ -3511,9 +3514,13 @@ get_gcc_system_version()
fi
done
fi
fi
if [[ -n $gcc_version ]];then
A_GCC_VERSIONS=( "$gcc_version" $gcc_list )
fi
temp_array=${A_GCC_VERSIONS[@]}
log_function_data "A_GCC_VERSIONS: $temp_array"
eval $LOGFE
}
get_gpu_temp_data()
{