avoid failure when gpgconf is not in path
This commit is contained in:
parent
54404370e5
commit
efd2f1a918
2 changed files with 4 additions and 2 deletions
|
@ -439,8 +439,8 @@ testHarness tmpdir cmd a = ifM (inPath (unGpgCmd cmd))
|
|||
-- other daemons. Stop them when done. This only affects
|
||||
-- daemons started for the GNUPGHOME that was used.
|
||||
-- Older gpg may not support this, so ignore failure.
|
||||
stopgpgagent = void $ boolSystem "gpgconf"
|
||||
[Param "--kill", Param "all"]
|
||||
stopgpgagent = whenM (inPath "gpgconf") $
|
||||
void $ boolSystem "gpgconf" [Param "--kill", Param "all"]
|
||||
|
||||
go (Just _) = Just <$> a
|
||||
go Nothing = return Nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue