variable name fix0

This commit is contained in:
inxi-svn 2011-06-18 05:42:29 +00:00
parent 188d30cca7
commit 633e59807e

8
inxi
View file

@ -4105,7 +4105,6 @@ get_machine_data()
array_string="$array_string$separator$file_data" array_string="$array_string$separator$file_data"
separator=',' separator=','
done done
fi fi
IFS=',' IFS=','
A_MACHINE_DATA=( $array_string ) A_MACHINE_DATA=( $array_string )
@ -4506,7 +4505,7 @@ get_optical_drive_data()
# get the actual disk dev location: # get the actual disk dev location:
local dev_disks_real=$( ls /dev/dvd* /dev/cd* /dev/scd* 2>/dev/null | xargs -l readlink | sort -u ) local dev_disks_real=$( ls /dev/dvd* /dev/cd* /dev/scd* 2>/dev/null | xargs -l readlink | sort -u )
local temp_array='' dev_disks_links='' sys_uevent_path='' proc_cdrom='' link_list='' local temp_array='' dev_disks_links='' sys_uevent_path='' proc_cdrom='' link_list=''
local separator='' linked='' disk='' item_string='' cpuinfo_string='' local separator='' linked='' disk='' item_string='' proc_info_string=''
# A_OPTICAL_DRIVE_DATA indexes: not going to use all these, but it's just as easy to build the full # A_OPTICAL_DRIVE_DATA indexes: not going to use all these, but it's just as easy to build the full
# data array and use what we need from it as to update it later to add features or items # data array and use what we need from it as to update it later to add features or items
@ -4548,6 +4547,7 @@ get_optical_drive_data()
separator='' separator=''
vendor='' vendor=''
model='' model=''
proc_info_string=''
rev_number='' rev_number=''
state="" state=""
sys_path='' sys_path=''
@ -4579,7 +4579,7 @@ get_optical_drive_data()
fi fi
# this needs to run no matter if there's proc data or not to create the array comma list # this needs to run no matter if there's proc data or not to create the array comma list
if [[ $B_SHOW_FULL_OPTICAL == 'true' ]];then if [[ $B_SHOW_FULL_OPTICAL == 'true' ]];then
cpuinfo_string=$( gawk -v diskId=$disk ' proc_info_string=$( gawk -v diskId=$disk '
BEGIN { BEGIN {
IGNORECASE=1 IGNORECASE=1
position="" position=""
@ -4635,7 +4635,7 @@ get_optical_drive_data()
' <<< "$proc_cdrom" ' <<< "$proc_cdrom"
) )
fi fi
item_string="$item_string,$vendor,$model,$rev_number,$cpuinfo_string,$state" item_string="$item_string,$vendor,$model,$rev_number,$proc_info_string,$state"
echo $item_string echo $item_string
done done
) ) ) )