]> Sergey Matveev's repositories - bfs.git/commitdiff
bench: Account for tailfin's at-exit -> defer rename
authorTavian Barnes <tavianator@tavianator.com>
Thu, 19 Oct 2023 12:03:04 +0000 (08:03 -0400)
committerTavian Barnes <tavianator@tavianator.com>
Thu, 19 Oct 2023 12:03:04 +0000 (08:03 -0400)
bench/bench.sh

index 0dfd7c4518a10cb489a884098518b6eefb2a51f3..b1d52bb3855290afb62f14c266ae829964e310bb 100644 (file)
@@ -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