Pass --use-agent to gpg when in no tty mode. Thanks, Eskild Hustvedt.
This commit is contained in:
parent
211bcd11bd
commit
fe8fee235b
3 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue