From a4edc404f0d91db54e13dace7be265a2611de5d6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 22 Nov 2014 16:20:02 -0400 Subject: propellor spin --- src/Propellor/CmdLine.hs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/Propellor/CmdLine.hs') diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs index 7002a3f6..11193ab3 100644 --- a/src/Propellor/CmdLine.hs +++ b/src/Propellor/CmdLine.hs @@ -166,11 +166,9 @@ spin target relay hst = do void $ actionMessage "Push to central git repository" $ boolSystem "git" [Param "push"] - cacheparams <- if False - then pure [] - else if viarelay - then pure ["-A"] - else toCommand <$> sshCachingParams hn viarelay + cacheparams <- if viarelay + then pure ["-A"] + else toCommand <$> sshCachingParams hn when viarelay $ void $ boolSystem "ssh-add" [] -- cgit v1.2.3