rm file once func is done

This commit is contained in:
Heavybullets8 2022-08-21 23:05:46 -06:00
parent b5c3bdaf0d
commit 518f7fa0d1

View File

@ -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