Update storage-test.sh
This commit is contained in:
@@ -110,14 +110,14 @@ if [ "$1" = "" ]; then
|
|||||||
echo "$(/bin/df -kTh | grep ext4)" | while IFS= read -r line ; do
|
echo "$(/bin/df -kTh | grep ext4)" | while IFS= read -r line ; do
|
||||||
((df++))
|
((df++))
|
||||||
path=$(echo $line | cut -d'%' -f2)
|
path=$(echo $line | cut -d'%' -f2)
|
||||||
drive_sel["${df}"]="${path// }"
|
drive_sel[${df}]="${path// }"
|
||||||
Print_Style "$df) ${path// }" "$CYAN"
|
Print_Style "$df) ${path// }" "$CYAN"
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
# read -r -p '#: ' drive_path </dev/tty
|
# read -r -p '#: ' drive_path </dev/tty
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo ${drive_sel}
|
echo ${drive_sel[@]}
|
||||||
echo "cd ${drive_sel['1']}"
|
echo "cd ${drive_sel['1']}"
|
||||||
echo "cd ${drive_sel['2']}"
|
echo "cd ${drive_sel['2']}"
|
||||||
echo "cd ${drive_sel['3']}"
|
echo "cd ${drive_sel['3']}"
|
||||||
|
|||||||
Reference in New Issue
Block a user