From 2e465cd6fa06165dfb50c0f1c39254203721dae7 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Tue, 5 Mar 2024 21:08:42 -0800 Subject: [PATCH] Remove _tmp from test/images/image-util.sh --- test/images/image-util.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/images/image-util.sh b/test/images/image-util.sh index 12c2d3e5933..baeddbf6324 100755 --- a/test/images/image-util.sh +++ b/test/images/image-util.sh @@ -127,8 +127,7 @@ build() { # Create a temporary directory for every architecture and copy the image content # and build the image from temporary directory - mkdir -p "${KUBE_ROOT}"/_tmp - temp_dir=$(mktemp -d "${KUBE_ROOT}"/_tmp/test-images-build.XXXXXX) + temp_dir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")" kube::util::trap_add "rm -rf ${temp_dir}" EXIT cp -r "${img_folder}"/* "${temp_dir}"