diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-07-30 11:29:12 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-07-30 11:29:12 -0400 |
| commit | 6f281e87084587987929dbb6a27671ad96858535 (patch) | |
| tree | aaa336fbdf556ec89260e3974cc65cc754ab4dd1 /src/Propellor/CmdLine.hs | |
| parent | 31709484a6fe162cd66d38f61858fb14be9efddd (diff) | |
Set GPG_TTY when run at a terminal
so that gpg can do password prompting despite being connected by pipes to
propellor (or git).
Diffstat (limited to 'src/Propellor/CmdLine.hs')
| -rw-r--r-- | src/Propellor/CmdLine.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs index cba5991d..bd01b34c 100644 --- a/src/Propellor/CmdLine.hs +++ b/src/Propellor/CmdLine.hs @@ -111,6 +111,7 @@ data CanRebuild = CanRebuild | NoRebuild defaultMain :: [Host] -> IO () defaultMain hostlist = withConcurrentOutput $ do useFileSystemEncoding + setupGpgEnv Shim.cleanEnv checkDebugMode cmdline <- processCmdLine |
