Update storage-test.sh

This commit is contained in:
2025-05-04 09:49:49 -05:00
parent 92bf3e46f9
commit f21037a510

View File

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