From dab6283658fcba05ead7cfa7b39181e5c65c929c Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 19 Mar 2024 06:31:27 +0100 Subject: [PATCH] fix --- check-disk-space.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-disk-space.sh b/check-disk-space.sh index e2115c88..1e5d9c6b 100755 --- a/check-disk-space.sh +++ b/check-disk-space.sh @@ -3,8 +3,8 @@ # Threshold for disk usage percentage threshold=90 -# Get the list of mounted filesystems and their usage -filesystems=$(df -h --output=target,pcent | tail -n +2) +# Get the list of mounted filesystems and their usage, excluding pseudo, duplicate, inaccessible file systems, and tmpfs +filesystems=$(df -h -x tmpfs --output=target,pcent | tail -n +2) # Iterate over each line of the output while IFS= read -r line; do