Skip to content

Commit

Permalink
feat: Display unknown filesystem (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Nov 10, 2024
1 parent 6cebe7c commit 92596c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ))

Expand Down

0 comments on commit 92596c4

Please sign in to comment.