From 92596c486082fc4a369a5d6c86d1de5f54ef5a79 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 10 Nov 2024 14:57:34 +0100 Subject: [PATCH] feat: Display unknown filesystem (#614) --- src/reset.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reset.sh b/src/reset.sh index df55378a..7351204e 100644 --- a/src/reset.sh +++ b/src/reset.sh @@ -95,7 +95,9 @@ WANTED_GB=$(( (RAM_WANTED + 1073741823)/1073741824 )) # Print system info SYS="${SYS/-generic/}" FS=$(stat -f -c %T "$STORAGE") +FS="${FS/UNKNOWN //}" FS="${FS/ext2\/ext3/ext4}" +FS=$(echo "$FS" | sed 's/[)(]//g') SPACE=$(df --output=avail -B 1 "$STORAGE" | tail -n 1) SPACE_GB=$(( (SPACE + 1073741823)/1073741824 ))