aboutsummaryrefslogblamecommitdiffstats
path: root/vault.sh
blob: bac110efbff636c5f918428d11f4446abec1fce8 (plain) (tree)
1
2
3
4
5
6
7
8







                                                     
#!/bin/sh

set -ex

password_bin=$(command -v pass || command -v gopass)
password_name="${2:-infrastructure/ansible/root}"

"${password_bin}" show "${password_name}" | head -n 1
remember that computers suck.