From 22589499ada538ad9272c9826fb335a47cae072d Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Fri, 29 Jul 2022 01:02:13 -0600 Subject: [PATCH] avoid calling more than once --- functions/mount.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/mount.sh b/functions/mount.sh index d88253cd..8082d0f8 100644 --- a/functions/mount.sh +++ b/functions/mount.sh @@ -10,7 +10,7 @@ do echo echo "0) Exit" 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 0) echo "Exiting.." @@ -19,7 +19,6 @@ do 1) while true 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 title echo "$list"