From 6f281e87084587987929dbb6a27671ad96858535 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 30 Jul 2017 11:29:12 -0400 Subject: Set GPG_TTY when run at a terminal so that gpg can do password prompting despite being connected by pipes to propellor (or git). --- src/Propellor/CmdLine.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Propellor/CmdLine.hs') 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 -- cgit v1.2.3