diff options
-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 |