avoid calling more than once
This commit is contained in:
parent
a211dc9a8a
commit
22589499ad
@ -10,7 +10,7 @@ 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.."
|
||||||
@ -19,7 +19,6 @@ do
|
|||||||
1)
|
1)
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
list=$(k3s kubectl get pvc -A | sort -u | awk '{print NR-1, "\t" $1 "\t" $2 "\t" $4}' | column -t | sed "s/^0/ /")
|
|
||||||
clear -x
|
clear -x
|
||||||
title
|
title
|
||||||
echo "$list"
|
echo "$list"
|
||||||
|
Loading…
Reference in New Issue
Block a user