bug fixes

This commit is contained in:
inxi-svn 2011-06-18 19:15:28 +00:00
parent 9962e8661a
commit f02a64561c

3
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi #### Script Name: inxi
#### version: 1.7.0 #### version: 1.7.0
#### Date: June 17 2011 #### Date: June 17 2011
#### Patch Number: 04 #### Patch Number: 05
######################################################################## ########################################################################
#### SPECIAL THANKS #### SPECIAL THANKS
######################################################################## ########################################################################
@ -4515,6 +4515,7 @@ get_optical_drive_data()
do do
disk=$( readlink $linked 2>/dev/null ) disk=$( readlink $linked 2>/dev/null )
if [[ -n $disk ]] && [[ -z $dev_disks_real || -z $( grep $disk <<< $dev_disks_real ) ]];then if [[ -n $disk ]] && [[ -z $dev_disks_real || -z $( grep $disk <<< $dev_disks_real ) ]];then
disk=$( basename $disk ) # puppy shows this as /dev/sr0, not sr0
# need line break IFS for below, no white space # need line break IFS for below, no white space
dev_disks_real="$dev_disks_real$separator$disk" dev_disks_real="$dev_disks_real$separator$disk"
separator=$'\n' separator=$'\n'