diff --git a/partvis b/partvis index 0400d5a..d38345d 100755 --- a/partvis +++ b/partvis @@ -108,7 +108,7 @@ for DEVICE in $(fdisk -l | grep '^Disk /' | grep -v '/dev/ram' | cut -d\ -f2 | printf "%s" "│" for (( LCV = 0; LCV < ${#PARTITIONS[@]}; LCV++ )); do - OUTPUT=$(blkid -o export "${PARTITIONS[${LCV}]}" | grep '^\(TYPE=\)' | cut -d= -f2 | sed 's:linux_raid_member:raid:g') + OUTPUT=$(blkid -o export "${PARTITIONS[${LCV}]}" | grep '^\(TYPE=\)' | cut -d= -f2 | sed 's:linux_raid_member:raid:g;s:zfs_member:zfs:g') PADL=$(( ( ${PCOLS[${LCV}]} - ${#OUTPUT} ) / 2 )) PADR=$(( ${PCOLS[${LCV}]} - ${#OUTPUT} - ${PADL} )) printf '%*s%s%*s' ${PADL} "" "${OUTPUT}" ${PADR} ""