storage.sh will now default to showing root drive info

This commit is contained in:
2025-07-03 14:55:08 -04:00
parent 77a64169b5
commit 6180c88fab
+4
View File
@@ -2,6 +2,10 @@
device="$1"
if [[ -z "$device" ]]; then
device='/'
fi
usage=`df --output=pcent $device | tail -n 1 | grep -oE '[0-9]+'`
open=`echo "100 - $usage" | bc`
avail=`df --output=avail -h $device | tail -n 1`