From 6180c88fab85ea74fb1478fcfd645783c77d06ea Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Thu, 3 Jul 2025 14:55:08 -0400 Subject: [PATCH] storage.sh will now default to showing root drive info --- storage.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage.sh b/storage.sh index fd2cef2..3c737b1 100755 --- a/storage.sh +++ b/storage.sh @@ -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`