From 518f7fa0d1806a99554bcaf585085c36b83c1c29 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Sun, 21 Aug 2022 23:05:46 -0600 Subject: [PATCH] rm file once func is done --- functions/cmd_to_container.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index 3a6af823..e40a1175 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -31,7 +31,6 @@ do echo "$search" | grep "$pod" >> cont_file done mapfile -t containers < <(sort -u cont_file 2> /dev/null) -# rm cont_file 2> /dev/null case "${#containers[@]}" in 0) echo -e "No containers available\nAre you sure the application in running?" @@ -109,6 +108,6 @@ do ;; esac done - +rm cont_file 2> /dev/null } export -f cmd_to_container \ No newline at end of file