From 93b940fd7613764c6d0ae8837c7f9ea244d2d4f7 Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Fri, 13 Mar 2026 13:03:02 -0400 Subject: [PATCH] add bw sync before fetching git-crypt key --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index 433a95a..71647a6 100644 --- a/setup.sh +++ b/setup.sh @@ -48,6 +48,7 @@ if bw status 2>/dev/null | grep -q '"status":"unauthenticated"'; then bw login fi BW_SESSION=$(bw unlock --raw) +bw sync --session "$BW_SESSION" bw get notes hantim-git-crypt-key --session "$BW_SESSION" | base64 -d > /tmp/git-crypt-key cd "$REPO_DIR" git-crypt unlock /tmp/git-crypt-key