Update storage-test.sh
This commit is contained in:
@@ -106,10 +106,13 @@ ChosenPartition=""
|
|||||||
if [ "$1" = "" ]; then
|
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
|
||||||
while IFS= read -r line; do
|
drives="$(df | grep ext4)"
|
||||||
|
IFS='
|
||||||
|
'
|
||||||
|
for d in ${drives}; do
|
||||||
((df++))
|
((df++))
|
||||||
echo "${df}) ${line}"
|
echo "${df}) ${d}"
|
||||||
done <<< "$'(df | grep ext4)'"
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
cd /
|
cd /
|
||||||
|
|||||||
Reference in New Issue
Block a user