Unverified Commit 92596c48 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Display unknown filesystem (#614)

parent 6cebe7c7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 ))