mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
removed label/uuid output for remote directories, that's unneeded and looks silly
This commit is contained in:
parent
42bcefb925
commit
73296f647f
9
inxi
9
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
|
||||
|
|
Loading…
Reference in a new issue