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 <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski
2023-03-17 17:41:33 +01:00
parent 9c16268b0a
commit a394798b75

View File

@@ -25,4 +25,5 @@ done
echo "create ${tar_path}"
(cd "${tarball_content_dir}"; tar cvfJ "${tar_path}" .)
rm -rf "${tarball_content_dir}"
popd