From d5c947fede1b6143051b9c8bbc727f447c2f498f Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sun, 23 Jun 2024 12:02:21 +0100 Subject: Make `bin/rotate-vault-password` a bit more robust --- bin/rotate-vault-password | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/rotate-vault-password') diff --git a/bin/rotate-vault-password b/bin/rotate-vault-password index 1762786..f73e889 100755 --- a/bin/rotate-vault-password +++ b/bin/rotate-vault-password @@ -12,4 +12,5 @@ gpg \ --output misc/vault-password.asc \ --encrypt password.txt -ansible-vault view misc/vaults/example.yml && rm password.txt +ansible-vault view misc/vaults/example.yml |\ + grep 'Secret revealed!' > /dev/null && rm password.txt -- cgit v1.2.3-70-g09d2