diff options
author | 2012-08-17 08:22:11 -0700 | |
---|---|---|
committer | 2012-08-17 08:22:11 -0700 | |
commit | fe8fee235b11e58cfda7e8a09e120b0daabe3f43 (patch) | |
tree | 867d1106431f6a1f9e4515ca48ded7d0c8765239 /Utility/Gpg.hs | |
parent | 211bcd11bd3b2409c43564891c4422081f7ad30e (diff) |
Pass --use-agent to gpg when in no tty mode. Thanks, Eskild Hustvedt.
Diffstat (limited to 'Utility/Gpg.hs')
-rw-r--r-- | Utility/Gpg.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Gpg.hs b/Utility/Gpg.hs index e13afe5d4..c28b20968 100644 --- a/Utility/Gpg.hs +++ b/Utility/Gpg.hs @@ -29,7 +29,7 @@ stdParams params = do b <- getEnv "GPG_BATCH" let batch = if isNothing e && isNothing b then [] - else ["--batch", "--no-tty"] + else ["--batch", "--no-tty", "--use-agent"] return $ batch ++ defaults ++ toCommand params where -- be quiet, even about checking the trustdb |