From fcf0217d4c4201322a0744180b3f6e51b46962e3 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 7 Jun 2011 01:30:46 +0000 Subject: [PATCH] improved logging of arrays for partitions --- inxi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index 53b2f9b..a862d73 100755 --- a/inxi +++ b/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 }