From 835528a8c15fb6504d3830a98dbbf5f6ac8e5ad2 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 8 Aug 2022 21:59:58 -0600 Subject: [PATCH] better message --- functions/menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/menu.sh b/functions/menu.sh index 0ae95ff3..077fd917 100644 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -238,7 +238,7 @@ case $selection in app_name=$(echo -e "$app_name" | grep ^"$selection)" | awk '{print $2}') search=$(k3s crictl ps -a -s running) mapfile -t pod_id < <(echo "$search" | grep -E " $app_name([[:space:]]|-([-[:alnum:]])*[[:space:]])" | awk '{print $9}') - [[ "${#pod_id[@]}" == 0 ]] && echo "Are you sure the application in running?" && exit + [[ "${#pod_id[@]}" == 0 ]] && echo -e "No containers available\nAre you sure the application in running?" && exit containers=$( for pod in "${pod_id[@]}" do