Revert "Remove _tmp from test/images/image-util.sh"

This reverts commit 2e465cd6fa.
This commit is contained in:
Antonio Ojea 2024-04-24 13:43:02 +00:00
parent 391e4b58e2
commit 5ed555fb5d

View File

@ -127,7 +127,8 @@ build() {
# Create a temporary directory for every architecture and copy the image content
# and build the image from temporary directory
temp_dir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")"
mkdir -p "${KUBE_ROOT}"/_tmp
temp_dir=$(mktemp -d "${KUBE_ROOT}"/_tmp/test-images-build.XXXXXX)
kube::util::trap_add "rm -rf ${temp_dir}" EXIT
cp -r "${img_folder}"/* "${temp_dir}"