Skip to content

Commit

Permalink
ON-16094: Ensure complete tmp dir is cleaned up at end of build
Browse files Browse the repository at this point in the history
  • Loading branch information
sianj-xilinx committed Oct 4, 2024
1 parent a0017fa commit f855e95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/zf_mkdist
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ copy_files_to_tmpdir() {


grab_artifacts_from_tmpdir() {
tmpdir="${zf_tmpdir}/build/artifacts"
artifact_tmpdir="${zf_tmpdir}/build/artifacts"
local_dir="${top_dir}/build/artifacts"
mkdir -p "${local_dir}"
tar cz -C "${tmpdir}" . | tar zx -C "${local_dir}"
tar cz -C "${artifact_tmpdir}" . | tar zx -C "${local_dir}"
}

make_release_package() {
Expand Down Expand Up @@ -198,7 +198,7 @@ if $shim && [ -z "$onload_tarball" ]; then
usage;
fi

tmpdir=$(mktemp -d)
declare -r tmpdir=$(mktemp -d)
onload_tmpdir="${tmpdir}/onload"
zf_tmpdir="${tmpdir}/zf"
trap cleanup EXIT
Expand Down

0 comments on commit f855e95

Please sign in to comment.