Files
infrascripts/ansible/unlock.sh
2025-10-22 21:47:09 -05:00

13 lines
257 B
Bash
Executable File

#!/bin/bash
# Author: Landon Dyck
# Will prompt for your bitwarden vault password and retain the open session in your environment
# Idempotent
# Usage: $ . ./unlock.sh
if [[ -z "${BW_SESSION}" ]]; then
export BW_SESSION=$(bw unlock --raw)
fi
bw sync