Skip to content

Commit

Permalink
Merge pull request #216 from EliahKagan/protect-outer-tempdir
Browse files Browse the repository at this point in the history
Fix race condition scheduling `$tempdir` deletion
  • Loading branch information
Byron authored Sep 6, 2024
2 parents bb9e89f + 8bc6881 commit d39c1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-zng
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -eu
trap 'rm -rf "$tempdir"' 0 INT
tempdir="$(mktemp -d)"
trap 'rm -rf "$tempdir"' 0 INT
cargo package -l --allow-dirty |
tr '\\' '/' |
grep -v '^Cargo\.toml\.orig$' |
Expand Down

0 comments on commit d39c1c5

Please sign in to comment.