Update storage-test.sh

This commit is contained in:
2025-05-04 09:44:53 -05:00
parent 83907da04c
commit 8477b07833

View File

@@ -106,10 +106,13 @@ ChosenPartition=""
if [ "$1" = "" ]; then
# User did not provide a partition/folder, change directory to rootfs
df=0
while IFS= read -r line; do
drives="$(df | grep ext4)"
IFS='
'
for d in ${drives}; do
((df++))
echo "${df}) ${line}"
done <<< "$'(df | grep ext4)'"
echo "${df}) ${d}"
done
exit 0
cd /