From 55904f21f8565986fbd04cf0cfba486f936c08a6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 19 Oct 2023 08:03:04 -0400 Subject: bench: Account for tailfin's at-exit -> defer rename --- bench/bench.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bench') 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 -- cgit v1.2.3