diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-19 08:03:04 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-19 08:03:04 -0400 |
commit | 55904f21f8565986fbd04cf0cfba486f936c08a6 (patch) | |
tree | 7e429532350e78868dc151f9f50be2c5d2c57b5f /bench/bench.sh | |
parent | 8560c29d22462764dbf88f52451f8dfe84ad9d4c (diff) | |
download | bfs-55904f21f8565986fbd04cf0cfba486f936c08a6.tar.xz |
bench: Account for tailfin's at-exit -> defer rename
Diffstat (limited to 'bench/bench.sh')
-rw-r--r-- | bench/bench.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/bench.sh b/bench/bench.sh index 0dfd7c4..b1d52bb 100644 --- a/bench/bench.sh +++ b/bench/bench.sh @@ -217,7 +217,7 @@ setup() { worktree="bench/worktree" as-user git worktree add -qd "$worktree" - at-exit as-user git worktree remove "$worktree" + defer as-user git worktree remove "$worktree" bin="$(realpath -- "$SETUP_DIR")/bin" as-user mkdir "$bin" @@ -241,7 +241,7 @@ setup() { # Work around this with a symlink tmp=$(as-user mktemp) as-user ln -sf "$bin" "$tmp" - at-exit rm "$tmp" + defer rm "$tmp" export PATH="$tmp:$PATH" fi |