<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/'</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/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>