Files
ansible_role_package/tests/cleanup.sh
2025-02-28 21:08:35 -07:00

21 lines
312 B
Bash
Executable File

#!/usr/bin/env zsh
set -x
[[ -f ./lib.sh ]] && source ./lib.sh || exit 1
ssh-keygen -R "[127.0.0.1]:2222"
for os in ${OSBUILDS[@]}
do
if podman container exists ${CONTAINER}_${os}
then
podman stop ${CONTAINER}_${os}
fi
done
if [ "$HOSTOS" = "Darwin" ]
then
podman machine stop ${MACHINENAME}
fi