From 73296f647f4a43d0c5082c79200c7236cc31faae Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 11 Feb 2009 18:10:26 +0000 Subject: [PATCH] removed label/uuid output for remote directories, that's unneeded and looks silly --- inxi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index 970d04c..211626d 100755 --- a/inxi +++ b/inxi @@ -3180,7 +3180,7 @@ print_partition_data() local a_partition_working='' partition_used='' swap='' partition_data='' local counter=0 line_max=160 i=0 a_partition_data='' line_starter='' local partitionIdClean='' part_dev='' full_dev='' part_label='' full_label='' - local part_uuid='' full_uuid='' dev_remote='' + local part_uuid='' full_uuid='' dev_remote='' b_is_remote='' # this handles the different, shorter, irc colors strings embedded in variable data if [[ $B_RUNNING_IN_SHELL != 'true' ]];then @@ -3202,7 +3202,7 @@ print_partition_data() IFS="," a_partition_working=(${A_PARTITION_DATA[i]}) IFS="$ORIGINAL_IFS" - + b_is_remote='' if [[ $B_SHOW_PARTITIONS_FULL == 'true' ]] || [[ ${a_partition_working[4]} == 'swap' || ${a_partition_working[4]} == 'main' ]];then if [[ -n ${a_partition_working[2]} ]];then partition_used=" ${C1}used:${C2} ${a_partition_working[2]} (${a_partition_working[3]})" @@ -3223,12 +3223,13 @@ print_partition_data() else part_dev="${a_partition_working[5]}" dev_remote='remote' + b_is_remote='true' fi else part_dev='N/A' fi full_dev=" ${C1}$dev_remote:${C2} $part_dev" - if [[ $B_SHOW_LABELS == 'true' ]];then + if [[ $B_SHOW_LABELS == 'true' && $b_is_remote != 'true' ]];then if [[ -n ${a_partition_working[6]} ]];then part_label="${a_partition_working[6]}" else @@ -3236,7 +3237,7 @@ print_partition_data() fi full_label=" ${C1}label:${C2} $part_label" fi - if [[ $B_SHOW_UUIDS == 'true' ]];then + if [[ $B_SHOW_UUIDS == 'true' && $b_is_remote != 'true' ]];then if [[ -n ${a_partition_working[7]} ]];then part_uuid="${a_partition_working[7]}" else