diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/secrets | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/secrets b/bin/secrets index 4e97314..7aef22c 100755 --- a/bin/secrets +++ b/bin/secrets @@ -12,7 +12,8 @@ mounted() { cmd_open() { if ! opened; then - sudo cryptsetup open ~/crypt/tozt-secrets.luks tozt-secrets + pass="$(pass show crypt/tozt-secrets)" + echo -n "$pass" | sudo cryptsetup --key-file=- open ~/crypt/tozt-secrets.luks tozt-secrets fi if ! mounted; then sudo mount /dev/mapper/tozt-secrets /mnt |