From 7dd8050c03a13d7a90a30a389508c4c36d70eca9 Mon Sep 17 00:00:00 2001 From: hugmouse Date: Wed, 19 Jun 2024 18:35:05 +0200 Subject: [PATCH] fix: add "overlay" type into 'TOTAL_DISK_RAW' to calculate space within docker environment --- yabs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yabs.sh b/yabs.sh index 000cf09..7fe7488 100644 --- a/yabs.sh +++ b/yabs.sh @@ -316,7 +316,7 @@ else fi # total disk size is calculated by adding all partitions of the types listed below (after the -t flags) if check_command "df"; then - 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 ntfs -t swap -t overlay --total 2>/dev/null | grep total | awk '{ print $2 }') TOTAL_DISK=$(format_size "$TOTAL_DISK_RAW") echo -e "Disk : $TOTAL_DISK" else