what the hell
This commit is contained in:
parent
7b0cacbfeb
commit
a5b17cdb96
@ -29,6 +29,7 @@ count=0
|
|||||||
for pod in "${pod_id[@]}"
|
for pod in "${pod_id[@]}"
|
||||||
do
|
do
|
||||||
mapfile -t containers < <(echo "$search" | grep "$pod" | awk '{print $4}')
|
mapfile -t containers < <(echo "$search" | grep "$pod" | awk '{print $4}')
|
||||||
|
echo "${#containers[@]}"
|
||||||
((count++))
|
((count++))
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -43,13 +44,13 @@ else
|
|||||||
do
|
do
|
||||||
clear -x
|
clear -x
|
||||||
title
|
title
|
||||||
|
cont_search=$(
|
||||||
for i in "${containers[@]}"
|
for i in "${containers[@]}"
|
||||||
do
|
do
|
||||||
echo "$i"
|
echo "$i"
|
||||||
done | nl -s ") " | column -t
|
done | nl -s ") " | column -t
|
||||||
|
)
|
||||||
|
echo "$cont_search"
|
||||||
echo
|
echo
|
||||||
echo "0) Exit"
|
echo "0) Exit"
|
||||||
read -rt 120 -p "Choose a container by number: " selection || { echo -e "\nFailed to make a selection in time" ; exit; }
|
read -rt 120 -p "Choose a container by number: " selection || { echo -e "\nFailed to make a selection in time" ; exit; }
|
||||||
|
Loading…
Reference in New Issue
Block a user