add bw sync before fetching git-crypt key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user