Skip to content

Commit

Permalink
Merge pull request containerd#10760 from GabyCT/topic/runctrap
Browse files Browse the repository at this point in the history
script/setup/install-runc: Add trap statement to clean up tmp files
  • Loading branch information
mxpv authored Oct 2, 2024
2 parents 01ca26f + 24fe444 commit 9c23fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/setup/install-runc
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function install_runc() {
: "${RUNC_REPO:=https://github.com/opencontainers/runc.git}"

TMPROOT=$(mktemp -d)
trap "rm -fR ${TMPROOT}" EXIT
git clone "${RUNC_REPO}" "${TMPROOT}"/runc
pushd "${TMPROOT}"/runc
git checkout "${RUNC_VERSION}"
env -u VERSION make BUILDTAGS='seccomp' runc
$SUDO make install
popd
rm -fR "${TMPROOT}"
}

function install_crun() {
Expand Down

0 comments on commit 9c23fd7

Please sign in to comment.