mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Remove _tmp from test/images/image-util.sh
This commit is contained in:
parent
be7ee821b9
commit
2e465cd6fa
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user