mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
improved logging of arrays for partitions
This commit is contained in:
parent
ee195f51ea
commit
fcf0217d4c
10
inxi
10
inxi
|
@ -4190,6 +4190,9 @@ get_partition_data()
|
|||
}' ) )
|
||||
IFS="$ORIGINAL_IFS"
|
||||
|
||||
temp_array=${A_PARTITION_DATA[@]}
|
||||
log_function_data "1: A_PARTITION_DATA:\n$temp_array"
|
||||
|
||||
# now we'll handle some fringe cases where irregular df -hT output shows /dev/disk/.. instead of
|
||||
# /dev/h|sdxy type data for column 1, . A_PARTITION_DATA[6]
|
||||
# Here we just search for the uuid/label and then grab the end of the line to get the right dev item.
|
||||
|
@ -4224,12 +4227,11 @@ get_partition_data()
|
|||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
temp_array=${A_PARTITION_DATA[@]}
|
||||
log_function_data "2: A_PARTITION_DATA:\n$temp_array"
|
||||
if [[ $B_SHOW_LABELS == 'true' || $B_SHOW_UUIDS == 'true' ]];then
|
||||
get_partition_data_advanced
|
||||
fi
|
||||
temp_array=${A_PARTITION_DATA[@]}
|
||||
log_function_data "A_PARTITION_DATA: $temp_array"
|
||||
eval $LOGFE
|
||||
}
|
||||
|
||||
|
@ -4361,7 +4363,7 @@ get_partition_data_advanced()
|
|||
log_function_data 'cat' "$FILE_MOUNTS"
|
||||
fi
|
||||
temp_array=${A_PARTITION_DATA[@]}
|
||||
log_function_data "A_PARTITION_DATA: $temp_array"
|
||||
log_function_data "3-advanced: A_PARTITION_DATA:\n$temp_array"
|
||||
eval $LOGFE
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue