Update .chezmoiscripts/10-unlock-bw.sh

This commit is contained in:
punkfairie 2024-09-28 10:26:56 -07:00
parent a3d7db00cc
commit eb09b5494b
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -1,5 +1,7 @@
#!/usr/bin/env sh
BW_PASSWORD={{ joinPath .chezmoi.sourceDir ".bw-password.asc" | include | decrypt }}
BW_SESSION="$(bw unlock "$BW_PASSWORD" --raw)"
export BW_PASSWORD
BW_SESSION="$(bw unlock --password-env BW_PASSWORD --raw)"
export BW_SESSION