Skip to content

Commit

Permalink
debian/vendor-rust: do not remove provided cargo home
Browse files Browse the repository at this point in the history
If cargo home is set we should not remove it during cleanup
  • Loading branch information
3v1n0 committed Jan 28, 2025
1 parent db060a6 commit b55bfa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debian/vendor-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -eu

CARGO_HOME=${DEB_CARGO_HOME:-$(mktemp --tmpdir -d -t "cargo-home-XXXXXX")}
export CARGO_HOME
trap 'rm -rf "$CARGO_HOME"' EXIT INT HUP
trap '[ -z "${DEB_CARGO_HOME:-}" ] && rm -rf "$CARGO_HOME"' EXIT INT HUP

# We need a filtered vendored directory
if [ ! $(which cargo-vendor-filterer) ]; then
Expand Down

0 comments on commit b55bfa2

Please sign in to comment.