<div dir="auto"><div data-smartmail="gmail_signature">Nice catch! On holiday now but will fix this when home</div><div data-smartmail="gmail_signature" dir="auto"><br></div><div data-smartmail="gmail_signature" dir="auto">Thanks,</div><div data-smartmail="gmail_signature" dir="auto">Jason</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 16, 2017 23:21, "Tycho Andersen" <<a href="mailto:tycho@docker.com">tycho@docker.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>In some cases (e.g. when there is a pub key missing), gpg prints an error to stderr, but pass doesn't seem to exit 1:</div><div><br></div><div>ubuntu@docker:~$ pass init 1024D/6AC43D77</div><div>mkdir: created directory '/home/ubuntu/.password-store/<wbr>'</div><div>Password store initialized for 1024D/6AC43D77</div><div>ubuntu@docker:~$ pass insert -f -m foo/bar</div><div>mkdir: created directory '/home/ubuntu/.password-store/<wbr>foo'</div><div>Enter contents of foo/bar and press Ctrl+D when finished:</div><div><br></div><div>gpg: 1024D/6AC43D77: skipped: No public key</div><div>gpg: [stdin]: encryption failed: No public key</div><div>ubuntu@docker:~$ echo $?</div><div>0</div><div>ubuntu@docker:~$ ls -al .password-store/foo/</div><div>total 8</div><div>drwx------ 2 ubuntu ubuntu 4096 Aug 16 23:14 .</div><div>drwx------ 3 ubuntu ubuntu 4096 Aug 16 23:14 ..</div><div><br></div><div>The foo directory is created, but the password is not inserted. It seems that at least pass should exit 1 if it failed, but maybe also it should delete foo, since there's nothing in that directory?</div><div><br></div><div>Cheers,</div><div><br></div><div>Tycho</div></div>
<br>______________________________<wbr>_________________<br>
Password-Store mailing list<br>
<a href="mailto:Password-Store@lists.zx2c4.com">Password-Store@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">https://lists.zx2c4.com/<wbr>mailman/listinfo/password-<wbr>store</a><br>
<br></blockquote></div></div>