From 799649e78c008b90db67c0e827fcb9c47d4407e9 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 24 May 2026 14:29:17 +0200 Subject: [PATCH] docs: Improve low diskspace warning (#1158) --- src/disk.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/disk.sh b/src/disk.sh index 0b0aab6..299ceaf 100644 --- a/src/disk.sh +++ b/src/disk.sh @@ -538,16 +538,15 @@ addDisk () { GB=$(formatBytes "$FREE") LEFT=$(formatBytes "$LEFT") CUR_SIZE=$(formatBytes "$CUR_SIZE") - msg="the virtual size of the ${DISK_DESC,,} is $CUR_SIZE" + msg="The virtual size of the ${DISK_DESC,,} is $CUR_SIZE" - if [[ "$USED" == "0" ]]; then - msg+="," - else + if [ -n "$USED" ] && [[ "$USED" != "0" ]]; then USED=$(formatBytes "$USED") - msg+=" (of which $USED is used)," + msg+=" (of which $USED is used)" fi - warn "$msg but there is only $GB of free space left in $DIR, make at least $LEFT more room available!" + info "$msg, but there is only $GB of free space remaining in $DIR now." + info "Please consider making at least $LEFT more space available in $DIR for future expansions." fi