From 14b1f7165144f121194d47b2d7bd6cd8956724a8 Mon Sep 17 00:00:00 2001 From: Minoplhy Date: Sun, 20 Apr 2025 12:07:24 +0700 Subject: [PATCH] add exfat to disk types for TOTAL_DISK_RAW (#104) --- yabs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yabs.sh b/yabs.sh index 0db504c..9a38772 100644 --- a/yabs.sh +++ b/yabs.sh @@ -267,7 +267,7 @@ TOTAL_SWAP_RAW=$(free | grep Swap | awk '{ print $2 }') TOTAL_SWAP=$(format_size "$TOTAL_SWAP_RAW") echo -e "Swap : $TOTAL_SWAP" # total disk size is calculated by adding all partitions of the types listed below (after the -t flags) -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 }') +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 }') TOTAL_DISK=$(format_size "$TOTAL_DISK_RAW") echo -e "Disk : $TOTAL_DISK" DISTRO=$(grep 'PRETTY_NAME' /etc/os-release | cut -d '"' -f 2 )