small bug fix, with -P the counter was printing the i instead of the counter for ID

This commit is contained in:
inxi-svn 2014-04-05 05:32:18 +00:00
parent 6efc583f6b
commit 65880a7f33

4
inxi
View file

@ -10833,7 +10833,7 @@ print_partition_data()
else
partitionIdClean=${a_partition_working[0]}
fi
id_size_fs="${C1}ID-$((i+1))$SEP3${C2} $partitionIdClean ${C1}size$SEP3${C2} ${a_partition_working[1]} $partition_used$full_fs$full_dev"
id_size_fs="${C1}ID-$((counter+1))$SEP3${C2} $partitionIdClean ${C1}size$SEP3${C2} ${a_partition_working[1]} $partition_used$full_fs$full_dev"
label_uuid="$full_label$full_uuid"
# label/uuid always print one per line, so only wrap if it's very long
if [[ $B_SHOW_UUIDS == 'true' || $B_SHOW_LABELS == 'true' ]] && \
@ -11132,14 +11132,12 @@ print_raid_data()
component_separator=' '
fi
done
if [[ $failed != '' ]];then
failed=" ${C1}FAILED$SEP3${C2}$failed${C2}"
fi
if [[ $spare != '' ]];then
spare=" ${C1}spare$SEP3${C2}$spare${C2}"
fi
if [[ -n $device_components || -n $spare || -n $failed ]];then
if [[ $B_EXTRA_DATA != 'true' && -z $BSD_TYPE ]];then
if [[ $device_report != 'N/A' && -n $device_components ]];then