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