Run gpg with --no-tty. Closes: #654721
This commit is contained in:
parent
156de9fc40
commit
769edd6b08
2 changed files with 5 additions and 3 deletions
|
@ -28,8 +28,9 @@ stdParams params = do
|
|||
let batch = if isNothing e then [] else ["--batch"]
|
||||
return $ batch ++ defaults ++ toCommand params
|
||||
where
|
||||
-- be quiet, even about checking the trustdb
|
||||
defaults = ["--quiet", "--trust-model", "always"]
|
||||
-- be quiet, even about checking the trustdb,
|
||||
-- and avoid using a tty
|
||||
defaults = ["--quiet", "--trust-model", "always", "--no-tty"]
|
||||
|
||||
{- Runs gpg with some params and returns its stdout, strictly. -}
|
||||
readStrict :: [CommandParam] -> IO String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue