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 ))