mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
small bug fix, with -P the counter was printing the i instead of the counter for ID
This commit is contained in:
parent
6efc583f6b
commit
65880a7f33
4
inxi
4
inxi
|
@ -10833,7 +10833,7 @@ print_partition_data()
|
||||||
else
|
else
|
||||||
partitionIdClean=${a_partition_working[0]}
|
partitionIdClean=${a_partition_working[0]}
|
||||||
fi
|
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="$full_label$full_uuid"
|
||||||
# label/uuid always print one per line, so only wrap if it's very long
|
# label/uuid always print one per line, so only wrap if it's very long
|
||||||
if [[ $B_SHOW_UUIDS == 'true' || $B_SHOW_LABELS == 'true' ]] && \
|
if [[ $B_SHOW_UUIDS == 'true' || $B_SHOW_LABELS == 'true' ]] && \
|
||||||
|
@ -11132,14 +11132,12 @@ print_raid_data()
|
||||||
component_separator=' '
|
component_separator=' '
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ $failed != '' ]];then
|
if [[ $failed != '' ]];then
|
||||||
failed=" ${C1}FAILED$SEP3${C2}$failed${C2}"
|
failed=" ${C1}FAILED$SEP3${C2}$failed${C2}"
|
||||||
fi
|
fi
|
||||||
if [[ $spare != '' ]];then
|
if [[ $spare != '' ]];then
|
||||||
spare=" ${C1}spare$SEP3${C2}$spare${C2}"
|
spare=" ${C1}spare$SEP3${C2}$spare${C2}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $device_components || -n $spare || -n $failed ]];then
|
if [[ -n $device_components || -n $spare || -n $failed ]];then
|
||||||
if [[ $B_EXTRA_DATA != 'true' && -z $BSD_TYPE ]];then
|
if [[ $B_EXTRA_DATA != 'true' && -z $BSD_TYPE ]];then
|
||||||
if [[ $device_report != 'N/A' && -n $device_components ]];then
|
if [[ $device_report != 'N/A' && -n $device_components ]];then
|
||||||
|
|
Loading…
Reference in a new issue