From a394798b75af27c9281026af61c3f186fb3c3b66 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Fri, 17 Mar 2023 17:41:33 +0100 Subject: [PATCH] kata-deploy: Remove temporary directory after creating tarball The various tarballs are unpacked into a temporary directory, and then that directory is compressed into kata-static.tar.xz. After we have the tarball, there is no reason to keep the temporary directory. Dispose of it as the last step. Fixes: #6490 Signed-off-by: Jeremi Piotrowski --- .../kata-deploy/local-build/kata-deploy-merge-builds.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh b/tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh index d99c49b4e2..a2e994849b 100755 --- a/tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh +++ b/tools/packaging/kata-deploy/local-build/kata-deploy-merge-builds.sh @@ -25,4 +25,5 @@ done echo "create ${tar_path}" (cd "${tarball_content_dir}"; tar cvfJ "${tar_path}" .) +rm -rf "${tarball_content_dir}" popd