summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess2014-11-22 16:10:46 -0400
committerJoey Hess2014-11-22 16:10:46 -0400
commit6be56755eedc4a8c259c0be7f912a3fde1da245a (patch)
tree4665d0d7b59a572ab5b2ac557fe3b122ea232533
parent392a0d3c1cc175161cd0c6d82b098e92d6adf9e6 (diff)
propellor spin
-rw-r--r--src/Propellor/CmdLine.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs
index b44cbc28..fb4b8eed 100644
--- a/src/Propellor/CmdLine.hs
+++ b/src/Propellor/CmdLine.hs
@@ -166,7 +166,9 @@ spin target relay hst = do
void $ actionMessage "Push to central git repository" $
boolSystem "git" [Param "push"]
- cacheparams <- toCommand <$> sshCachingParams hn viarelay
+ cacheparams <- if relaying
+ then pure []
+ else toCommand <$> sshCachingParams hn viarelay
when viarelay $
void $ boolSystem "ssh-add" []