<div dir="ltr"><div>I tried to add a key to a directory using pass init -p apps/someapp ...keys...</div><div><br></div><div>I forgot my passphrase and got it wrong three times. Then the passphrase dialog popped up again and I got it right.</div><div><br></div><div>Looking at the output, it didn't encrypt the first file, but it continued encrypting the other files.</div><div><br></div><div>While it's my job to look at the output before pushing changes, it feels like it would make more sense for pass to exit with an error code after the first file failed, rather than to prompt again and keep trying for the remaining files in the directory.</div><div><br></div><div> $ pass init -p apps/someapp <a href="mailto:aaa@gmail.com">aaa@gmail.com</a> <a href="mailto:bbbb@gmail.com">bbbb@gmail.com</a><br>Password store initialized for <a href="mailto:aaa@gmail.com">aaa@gmail.com</a>, <a href="mailto:bbbb@gmail.com">bbbb@gmail.com</a> (apps/someapp)<br>[master f12716d] Set GPG id to <a href="mailto:aaa@gmail.com">aaa@gmail.com</a>, <a href="mailto:bbbb@gmail.com">bbbb@gmail.com</a> (apps/someapp).<br> 1 file changed, 1 insertion(+)<br>apps/someapp/AWS_SECRET_ACCESS_KEY: reencrypting to 0549C9936556A5B6 5AFE80D12EC61626<br>gpg: decryption failed: No secret key<br>apps/someapp/DJANGO_SECRET: reencrypting to 0549C9936556A5B6 5AFE80D12EC61626<br>apps/someapp/POSTGRES_PASSWORD: reencrypting to 0549C9936556A5B6 5AFE80D12EC61626<br>[master c23fb5b] Reencrypt password store using new GPG id <a href="mailto:aaa@gmail.com">aaa@gmail.com</a>, <a href="mailto:bbbb@gmail.com">bbbb@gmail.com</a> (apps/someapp).<br> 2 files changed, 0 insertions(+), 0 deletions(-)<br> rewrite apps/someapp/DJANGO_SECRET.gpg (100%)<br> rewrite apps/someapp/POSTGRES_PASSWORD.gpg (100%)</div><div><br></div><div>In this case I actually thought it was succesful and it was going to keep retrying until I pressed cancel or ctrl+c, but it was actually just continuing with files one by one. <br></div><div><br></div><div>Is this behaviour intentional?</div><div><br></div><div>Best</div><div>JD<br></div></div>