diff --git a/storage-test.sh b/storage-test.sh index 936edad..8242d27 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -106,7 +106,7 @@ ChosenPartition="" if [ "$1" = "" ]; then # User did not provide a partition/folder, change directory to rootfs df=0 - drives="$(df | grep ext4)" + drives=($(df | grep ext4)) for d in "${drives}"; do ((df++)) echo "${df}) ${d}"