Preserve supplied identity when sharing Buzz worktree identity

Signed-off-by: John Tennant <jtennant@squareup.com>
This commit is contained in:
John Tennant
2026-09-09 12:30:53 -04:00
parent 7f23539ed6
commit cf4f091d2c

View File

@@ -48,7 +48,7 @@ if git rev-parse --is-inside-work-tree &>/dev/null; then
# worktrees skip onboarding and share the same identity. The per-worktree
# identifier is kept so concurrent instances don't collide on
# tauri-plugin-single-instance or the app data directory.
if [[ "${BUZZ_SHARE_IDENTITY:-0}" == "1" ]]; then
if [[ "${BUZZ_SHARE_IDENTITY:-0}" == "1" && -z "${BUZZ_PRIVATE_KEY:-}" ]]; then
KEYRING_SERVICE="buzz-desktop-dev"
KEYRING_BLOB=""
case "$(uname -s)" in