feat: Check if storage folder is writeable

This commit is contained in:
Kroese 2025-08-27 22:49:44 +02:00 committed by GitHub
parent a19bf2f066
commit 6495ea46db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,8 +103,7 @@ SYS="${SYS/-generic/}"
FS="${FS/UNKNOWN //}"
FS="${FS/ext2\/ext3/ext4}"
FS=$(echo "$FS" | sed 's/[)(]//g')
SPACE=$(df --outpu
t=avail -B 1 "$STORAGE" | tail -n 1)
SPACE=$(df --output=avail -B 1 "$STORAGE" | tail -n 1)
SPACE_GB=$(formatBytes "$SPACE" "down")
AVAIL_MEM=$(formatBytes "$RAM_AVAIL" "down")
TOTAL_MEM=$(formatBytes "$RAM_TOTAL" "up")