feat: Display unknown filesystem (#151)
This commit is contained in:
parent
9c6fbe9ea8
commit
5984834dbf
1 changed files with 2 additions and 0 deletions
|
@ -97,7 +97,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 ))
|
||||
|
||||
|
|
Loading…
Reference in a new issue