Update storage-test.sh

This commit is contained in:
2025-05-04 09:40:41 -05:00
parent fa47f1d57d
commit 4eb3769226

View File

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