docs: use trap cleanup in dogfood build guidance

This commit is contained in:
Yeachan-Heo 2026-05-28 03:01:33 +00:00
parent 5c3e1c1444
commit 85a3f3c939
1 changed files with 1 additions and 1 deletions

View File

@ -78,8 +78,8 @@ echo " export CLAW=$BINARY" >&2
echo "" >&2
echo " Dogfood with isolated config (no real user config on stderr):" >&2
echo " CLAW_ISOLATED=\$(mktemp -d)" >&2
echo " trap 'rm -rf "\$CLAW_ISOLATED"' EXIT" >&2
echo " CLAW_CONFIG_HOME=\$CLAW_ISOLATED \$CLAW plugins list --output-format json" >&2
echo " rm -rf \$CLAW_ISOLATED" >&2
echo "" >&2
echo " cargo run overhead: ~1s/invocation vs 7ms for pre-built binary." >&2
echo " Prefer pre-built binary (\$CLAW) for dogfood loops." >&2