add bw sync before fetching git-crypt key

This commit is contained in:
2026-03-13 13:03:02 -04:00
parent bb371a53c4
commit 93b940fd76
+1
View File
@@ -48,6 +48,7 @@ if bw status 2>/dev/null | grep -q '"status":"unauthenticated"'; then
bw login bw login
fi fi
BW_SESSION=$(bw unlock --raw) 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 bw get notes hantim-git-crypt-key --session "$BW_SESSION" | base64 -d > /tmp/git-crypt-key
cd "$REPO_DIR" cd "$REPO_DIR"
git-crypt unlock /tmp/git-crypt-key git-crypt unlock /tmp/git-crypt-key