Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion publish-crates
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ system_cargo_config_dir=/.cargo
on_exit() {
local exit_code=$?

rm -rf "$tmp"
# it's not necessary to clean up the temporary folder on CI because everything
# is cleaned up automatically when the job runner exits
if [ ! "${CI:-}" ]; then
rm -rf "$tmp"
fi

pkill -P "$$" || :

exit "$exit_code"
Expand Down