Skip to content

Commit 14b1f71

Browse files
authored
add exfat to disk types for TOTAL_DISK_RAW (masonr#104)
1 parent 0ec2a2a commit 14b1f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yabs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ TOTAL_SWAP_RAW=$(free | grep Swap | awk '{ print $2 }')
267267
TOTAL_SWAP=$(format_size "$TOTAL_SWAP_RAW")
268268
echo -e "Swap : $TOTAL_SWAP"
269269
# total disk size is calculated by adding all partitions of the types listed below (after the -t flags)
270-
TOTAL_DISK_RAW=$(df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $2 }')
270+
TOTAL_DISK_RAW=$(df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t exfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $2 }')
271271
TOTAL_DISK=$(format_size "$TOTAL_DISK_RAW")
272272
echo -e "Disk : $TOTAL_DISK"
273273
DISTRO=$(grep 'PRETTY_NAME' /etc/os-release | cut -d '"' -f 2 )

0 commit comments

Comments
 (0)