mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
variable name fix0
This commit is contained in:
parent
188d30cca7
commit
633e59807e
8
inxi
8
inxi
|
@ -4105,7 +4105,6 @@ get_machine_data()
|
|||
array_string="$array_string$separator$file_data"
|
||||
separator=','
|
||||
done
|
||||
|
||||
fi
|
||||
IFS=','
|
||||
A_MACHINE_DATA=( $array_string )
|
||||
|
@ -4506,7 +4505,7 @@ get_optical_drive_data()
|
|||
# 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 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
|
||||
# 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=''
|
||||
vendor=''
|
||||
model=''
|
||||
proc_info_string=''
|
||||
rev_number=''
|
||||
state=""
|
||||
sys_path=''
|
||||
|
@ -4579,7 +4579,7 @@ get_optical_drive_data()
|
|||
fi
|
||||
# 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
|
||||
cpuinfo_string=$( gawk -v diskId=$disk '
|
||||
proc_info_string=$( gawk -v diskId=$disk '
|
||||
BEGIN {
|
||||
IGNORECASE=1
|
||||
position=""
|
||||
|
@ -4635,7 +4635,7 @@ get_optical_drive_data()
|
|||
' <<< "$proc_cdrom"
|
||||
)
|
||||
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
|
||||
done
|
||||
) )
|
||||
|
|
Loading…
Reference in a new issue