Fix cleanup of build-and-lint container

This commit is contained in:
Alexandre Aubin 2024-08-08 17:51:52 +02:00
parent 433748e648
commit 12136f61cf

View file

@ -5,11 +5,12 @@ source $current_dir/common.sh
if [[ $IMAGE == "build-and-lint" ]]
then
echo "Should cleanup $CUSTOM_ENV_CI_GIT_CLONE_PATH ?"
incus exec $CONTAINER_NAME -- rm -rf $CUSTOM_ENV_GIT_CLONE_PATH
incus exec $CONTAINER_NAME -- rm -rf $CUSTOM_ENV_GIT_CLONE_PATH.tmp
incus exec $CONTAINER_NAME -- rmdir $(dirname $CUSTOM_ENV_GIT_CLONE_PATH) || true
exit 0
fi
info "Stopping container $CONTAINER_NAME"
incus stop "$CONTAINER_NAME"