echo array for testting

This commit is contained in:
Heavybullets8 2022-08-21 22:13:09 -06:00
parent 3cacd0bb80
commit 61bf2efe85

View File

@ -35,6 +35,10 @@ do
containers+=("$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")") containers+=("$(echo "$search" | grep "$pod" | awk '{print $4}' | tr -d " \t\r ")")
done done
mapfile -t containers < <(echo "${containers[*]}") mapfile -t containers < <(echo "${containers[*]}")
for i in "${containers[@]}"
do
echo "$i"
done
case "${#containers[@]}" in case "${#containers[@]}" in
0) 0)
echo -e "No containers available\nAre you sure the application in running?" echo -e "No containers available\nAre you sure the application in running?"