diff --git a/inxi b/inxi index 1bd3783..02b5cc9 100755 --- a/inxi +++ b/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 ) )