From eb09b5494bb0bf177acd7395f1f8603148d5ef1e Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 28 Sep 2024 10:26:56 -0700 Subject: [PATCH] Update .chezmoiscripts/10-unlock-bw.sh --- .chezmoiscripts/run_before_10-unlock-bw.sh.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl b/.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl index 0028806..cc795e8 100644 --- a/.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl +++ b/.chezmoiscripts/run_before_10-unlock-bw.sh.tmpl @@ -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