[FIX] Logout of bitwarden before logging in

Otherwise we do not get the session key output...
This commit is contained in:
Bruno BELANYI 2021-01-06 15:22:48 +01:00
parent 5c1675e6e6
commit cd9c3840c7

View file

@ -82,6 +82,7 @@ get-pgp() {
get-creds() {
if [ -z "${BW_SESSION-set}" ]; then
bw logout || true
BW_SESSION="$(bw login --raw)"
export BW_SESSION
fi