only list with option 1
This commit is contained in:
parent
22589499ad
commit
717306e01f
@ -10,13 +10,13 @@ do
|
|||||||
echo
|
echo
|
||||||
echo "0) Exit"
|
echo "0) Exit"
|
||||||
read -rt 120 -p "Unmount All Please type a number: " selection
|
read -rt 120 -p "Unmount All Please type a number: " selection
|
||||||
list=$(k3s kubectl get pvc -A | sort -u | awk '{print NR-1, "\t" $1 "\t" $2 "\t" $4}' | column -t | sed "s/^0/ /")
|
|
||||||
case $selection in
|
case $selection in
|
||||||
0)
|
0)
|
||||||
echo "Exiting.."
|
echo "Exiting.."
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
1)
|
1)
|
||||||
|
list=$(k3s kubectl get pvc -A | sort -u | awk '{print NR-1, "\t" $1 "\t" $2 "\t" $4}' | column -t | sed "s/^0/ /")
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
clear -x
|
clear -x
|
||||||
|
Loading…
Reference in New Issue
Block a user